Search in sources :

Example 1 with FilterSequence

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();
}
Also used : FilterSequence(boofcv.abst.filter.FilterSequence) ImageType(boofcv.struct.image.ImageType)

Example 2 with FilterSequence

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);
}
Also used : FilterSequence(boofcv.abst.filter.FilterSequence)

Aggregations

FilterSequence (boofcv.abst.filter.FilterSequence)2 ImageType (boofcv.struct.image.ImageType)1