Search in sources :

Example 1 with YuvStatistics

use of deepboof.models.YuvStatistics in project BoofCV by lessthanoptimal.

the class TestImageClassifierVggCifar10 method createClassifier.

@Override
public BaseImageClassifier createClassifier() {
    ImageClassifierVggCifar10 alg = new ImageClassifierVggCifar10();
    alg.stats = new YuvStatistics();
    alg.stats.meanU = 120;
    alg.stats.stdevU = 25;
    alg.stats.meanV = 40;
    alg.stats.stdevV = 10;
    alg.stats.kernel = new double[] { 0.1, 0.5, 0.1 };
    alg.stats.kernelOffset = 1;
    alg.localNorm = new ImageLocalNormalization<>(GrayF32.class, BorderType.EXTENDED);
    alg.kernel = DataManipulationOps.create1D_F32(alg.stats.kernel);
    return alg;
}
Also used : GrayF32(boofcv.struct.image.GrayF32) YuvStatistics(deepboof.models.YuvStatistics)

Aggregations

GrayF32 (boofcv.struct.image.GrayF32)1 YuvStatistics (deepboof.models.YuvStatistics)1