Search in sources :

Example 6 with KernelBase

use of boofcv.struct.convolve.KernelBase in project BoofCV by lessthanoptimal.

the class TestConvolveJustBorder_General_SB method reformatForValidation.

@Override
protected Object[] reformatForValidation(Method m, Object[] targetParam) {
    Object[] ret = new Object[] { targetParam[0], targetParam[1], targetParam[2] };
    ImageGray inputImage = (ImageGray) ((ImageBorder) targetParam[1]).getImage();
    KernelBase kernel = (KernelBase) targetParam[0];
    computeBorder(kernel, m.getName());
    int borderW = borderX0 + borderX1;
    int borderH = borderY0 + borderY1;
    ret[1] = inputImage.createNew(width + borderW, height + borderH);
    ret[2] = ((ImageGray) targetParam[2]).createNew(width + borderW, height + borderH);
    fillTestImage(inputImage, (ImageGray) ret[1], borderX0, borderY0, borderX1, borderY1);
    return ret;
}
Also used : GImageGray(boofcv.core.image.GImageGray) FactoryGImageGray(boofcv.core.image.FactoryGImageGray) ImageGray(boofcv.struct.image.ImageGray) KernelBase(boofcv.struct.convolve.KernelBase)

Aggregations

KernelBase (boofcv.struct.convolve.KernelBase)6 ImageBase (boofcv.struct.image.ImageBase)3 FactoryGImageGray (boofcv.core.image.FactoryGImageGray)1 GImageGray (boofcv.core.image.GImageGray)1 Kernel1D (boofcv.struct.convolve.Kernel1D)1 Kernel2D (boofcv.struct.convolve.Kernel2D)1 ImageGray (boofcv.struct.image.ImageGray)1 ImageInterleaved (boofcv.struct.image.ImageInterleaved)1