Search in sources :

Example 1 with GenericBackgroundStationaryGaussianChecks

use of boofcv.alg.background.stationary.GenericBackgroundStationaryGaussianChecks in project BoofCV by lessthanoptimal.

the class GenericBackgroundMovingGaussianChecks method performStationaryTests.

@Test
void performStationaryTests() {
    GenericBackgroundStationaryGaussianChecks stationary = new GenericBackgroundStationaryGaussianChecks() {

        @Override
        public BackgroundModelStationary create(ImageType imageType) {
            BackgroundModelMoving moving = GenericBackgroundMovingGaussianChecks.this.create(imageType);
            return new MovingToStationary((BackgroundMovingGaussian) moving, new Homography2D_F32());
        }
    };
    stationary.initialVariance();
    stationary.minimumDifference();
    stationary.learnRate();
    stationary.checkBandsUsed();
}
Also used : BackgroundModelMoving(boofcv.alg.background.BackgroundModelMoving) GenericBackgroundStationaryGaussianChecks(boofcv.alg.background.stationary.GenericBackgroundStationaryGaussianChecks) Homography2D_F32(georegression.struct.homography.Homography2D_F32) ImageType(boofcv.struct.image.ImageType) Test(org.junit.jupiter.api.Test)

Aggregations

BackgroundModelMoving (boofcv.alg.background.BackgroundModelMoving)1 GenericBackgroundStationaryGaussianChecks (boofcv.alg.background.stationary.GenericBackgroundStationaryGaussianChecks)1 ImageType (boofcv.struct.image.ImageType)1 Homography2D_F32 (georegression.struct.homography.Homography2D_F32)1 Test (org.junit.jupiter.api.Test)1