use of boofcv.struct.image.GrayI in project BoofCV by lessthanoptimal.
the class TestImplEnhanceHistogram method equalizeLocalCol.
@Test
void equalizeLocalCol() {
int numFound = 0;
Method[] methods = ImplEnhanceHistogram.class.getMethods();
for (Method method : methods) {
if (method.getName().compareTo("equalizeLocalCol") != 0)
continue;
numFound++;
Class imageType = method.getParameterTypes()[0];
GrayI input = (GrayI) GeneralizedImageOps.createSingleBand(imageType, width, height);
GrayI output = (GrayI) GeneralizedImageOps.createSingleBand(imageType, width, height);
equalizeLocalCol(input, output);
BoofTesting.checkSubImage(this, "equalizeLocalCol", true, input, output);
}
assertEquals(2, numFound);
}
Aggregations