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;
}
Aggregations