use of boofcv.abst.filter.FilterSequence in project BoofCV by lessthanoptimal.
the class CompareHessianToConvolution method setKernel.
public void setKernel(int which, Kernel1D horizontal, Kernel1D vertical) {
ImageType _inputType = ImageType.single(inputType);
FilterImageInterface<?, ?> f1 = FactoryConvolve.convolve(horizontal, _inputType, _inputType, BorderType.EXTENDED, true);
FilterImageInterface<?, ?> f2 = FactoryConvolve.convolve(vertical, _inputType, _inputType, BorderType.EXTENDED, false);
outputFilters[which] = new FilterSequence(f1, f2);
if (borderSize < horizontal.getRadius())
borderSize = horizontal.getRadius();
if (borderSize < vertical.getRadius())
borderSize = vertical.getRadius();
}
use of boofcv.abst.filter.FilterSequence in project BoofCV by lessthanoptimal.
the class CompareDerivativeToConvolution method setKernel.
public void setKernel(int which, Kernel1D horizontal, Kernel1D vertical) {
FilterImageInterface<?, ?> f1 = FactoryConvolve.convolve(horizontal, ImageType.single(inputType), ImageType.single(outputType), BorderType.EXTENDED, true);
FilterImageInterface<?, ?> f2 = FactoryConvolve.convolve(vertical, ImageType.single(inputType), ImageType.single(outputType), BorderType.EXTENDED, false);
outputFilters[which] = new FilterSequence(f1, f2);
borders[which] = setBorder(horizontal, vertical);
}
Aggregations