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