Search in sources :

Example 11 with GrayI

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);
}
Also used : Method(java.lang.reflect.Method) GrayI(boofcv.struct.image.GrayI) Test(org.junit.jupiter.api.Test)

Aggregations

GrayI (boofcv.struct.image.GrayI)11 Method (java.lang.reflect.Method)5 DogArray_I32 (org.ddogleg.struct.DogArray_I32)5 Test (org.junit.jupiter.api.Test)5 GrowArray (pabeles.concurrency.GrowArray)5 ImageBorder (boofcv.struct.border.ImageBorder)1 ImageBorder_F32 (boofcv.struct.border.ImageBorder_F32)1 ImageBorder_S32 (boofcv.struct.border.ImageBorder_S32)1 GrayF32 (boofcv.struct.image.GrayF32)1