use of boofcv.struct.convolve.Kernel1D_S32 in project BoofCV by lessthanoptimal.
the class ConvolveImageBox method vertical.
/**
* Performs a vertical 1D convolution of a box kernel across the image
*
* @param input The original image. Not modified.
* @param output Where the resulting image is written to. Modified.
* @param radius Kernel size.
*/
public static void vertical(GrayS16 input, GrayI16 output, int radius, @Nullable GrowArray<DogArray_I32> work) {
InputSanityCheck.checkSameShape(input, output);
Kernel1D_S32 kernel = FactoryKernel.table1D_S32(radius);
ConvolveJustBorder_General_SB.vertical(kernel, ImageBorderValue.wrap(input, 0), output);
if (BoofConcurrency.USE_CONCURRENT) {
ImplConvolveBox_MT.vertical(input, output, radius, work);
} else {
ImplConvolveBox.vertical(input, output, radius, work);
}
}
Aggregations