Search in sources :

Example 1 with GenericBackgroundStationaryGmmChecks

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

the class GenericBackgroundMovingGmmChecks method performStationaryTests.

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

        @Override
        public BackgroundModelStationary create(ImageType imageType) {
            BackgroundModelMoving moving = GenericBackgroundMovingGmmChecks.this.create(imageType);
            return new MovingToStationary((BackgroundMovingGmm) moving, new Homography2D_F32());
        }
    };
    stationary.initialVariance();
    stationary.learnRate();
    stationary.checkBandsUsed();
}
Also used : GenericBackgroundStationaryGmmChecks(boofcv.alg.background.stationary.GenericBackgroundStationaryGmmChecks) BackgroundModelMoving(boofcv.alg.background.BackgroundModelMoving) 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 GenericBackgroundStationaryGmmChecks (boofcv.alg.background.stationary.GenericBackgroundStationaryGmmChecks)1 ImageType (boofcv.struct.image.ImageType)1 Homography2D_F32 (georegression.struct.homography.Homography2D_F32)1 Test (org.junit.jupiter.api.Test)1