use of boofcv.alg.filter.derivative.CompareDerivativeToConvolution in project BoofCV by lessthanoptimal.
the class TestGradientPrewitt_Shared method compareToConvolve_I16.
@Test
public void compareToConvolve_I16() throws NoSuchMethodException {
CompareDerivativeToConvolution validator = new CompareDerivativeToConvolution();
validator.setTarget(GradientPrewitt_Shared.class.getMethod("process", GrayS16.class, GrayS16.class, GrayS16.class));
validator.setKernel(0, GradientPrewitt.kernelDerivX_I32);
validator.setKernel(1, GradientPrewitt.kernelDerivY_I32);
GrayS16 input = new GrayS16(width, height);
ImageMiscOps.fillUniform(input, rand, 0, 10);
GrayS16 derivX = new GrayS16(width, height);
GrayS16 derivY = new GrayS16(width, height);
validator.compare(false, input, derivX, derivY);
}
use of boofcv.alg.filter.derivative.CompareDerivativeToConvolution in project BoofCV by lessthanoptimal.
the class TestGradientPrewitt_Shared method compareToConvolve_I8.
@Test
public void compareToConvolve_I8() throws NoSuchMethodException {
CompareDerivativeToConvolution validator = new CompareDerivativeToConvolution();
validator.setTarget(GradientPrewitt_Shared.class.getMethod("process", GrayU8.class, GrayS16.class, GrayS16.class));
validator.setKernel(0, GradientPrewitt.kernelDerivX_I32);
validator.setKernel(1, GradientPrewitt.kernelDerivY_I32);
GrayU8 input = new GrayU8(width, height);
ImageMiscOps.fillUniform(input, rand, 0, 10);
GrayS16 derivX = new GrayS16(width, height);
GrayS16 derivY = new GrayS16(width, height);
validator.compare(false, input, derivX, derivY);
}
use of boofcv.alg.filter.derivative.CompareDerivativeToConvolution in project BoofCV by lessthanoptimal.
the class TestGradientThree_Standard method compareToConvolve_F32.
@Test
public void compareToConvolve_F32() throws NoSuchMethodException {
CompareDerivativeToConvolution validator = new CompareDerivativeToConvolution();
validator.setTarget(GradientThree_Standard.class.getMethod("process", GrayF32.class, GrayF32.class, GrayF32.class));
validator.setKernel(0, GradientThree.kernelDeriv_F32, true);
validator.setKernel(1, GradientThree.kernelDeriv_F32, false);
GrayF32 input = new GrayF32(width, height);
ImageMiscOps.fillUniform(input, rand, 0, 10);
GrayF32 derivX = new GrayF32(width, height);
GrayF32 derivY = new GrayF32(width, height);
validator.compare(false, input, derivX, derivY);
}
use of boofcv.alg.filter.derivative.CompareDerivativeToConvolution in project BoofCV by lessthanoptimal.
the class TestGradientThree_Standard method compareToConvolve_I8_S32.
@Test
public void compareToConvolve_I8_S32() throws NoSuchMethodException {
CompareDerivativeToConvolution validator = new CompareDerivativeToConvolution();
validator.setTarget(GradientThree_Standard.class.getMethod("process", GrayU8.class, GrayS32.class, GrayS32.class));
validator.setKernel(0, GradientThree.kernelDeriv_I32, true);
validator.setKernel(1, GradientThree.kernelDeriv_I32, false);
GrayU8 input = new GrayU8(width, height);
ImageMiscOps.fillUniform(input, rand, 0, 10);
GrayS32 derivX = new GrayS32(width, height);
GrayS32 derivY = new GrayS32(width, height);
validator.compare(false, input, derivX, derivY);
}
use of boofcv.alg.filter.derivative.CompareDerivativeToConvolution in project BoofCV by lessthanoptimal.
the class TestGradientThree_Standard method compareToConvolve_I8_S16.
@Test
public void compareToConvolve_I8_S16() throws NoSuchMethodException {
CompareDerivativeToConvolution validator = new CompareDerivativeToConvolution();
validator.setTarget(GradientThree_Standard.class.getMethod("process", GrayU8.class, GrayS16.class, GrayS16.class));
validator.setKernel(0, GradientThree.kernelDeriv_I32, true);
validator.setKernel(1, GradientThree.kernelDeriv_I32, false);
GrayU8 input = new GrayU8(width, height);
ImageMiscOps.fillUniform(input, rand, 0, 10);
GrayS16 derivX = new GrayS16(width, height);
GrayS16 derivY = new GrayS16(width, height);
validator.compare(false, input, derivX, derivY);
}