Search in sources :

Example 1 with GenericBackgroundStationaryBasicChecks

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

the class GenericBackgroundMovingBasicChecks method performStationaryTests.

@Test
public void performStationaryTests() {
    GenericBackgroundStationaryBasicChecks stationary = new GenericBackgroundStationaryBasicChecks() {

        @Override
        public BackgroundModelStationary create(ImageType imageType) {
            BackgroundModelMoving moving = GenericBackgroundMovingBasicChecks.this.create(imageType);
            return new MovingToStationary((BackgroundMovingBasic) moving, new Homography2D_F32());
        }
    };
    stationary.checkLearnRate();
    stationary.checkThreshold();
    stationary.checkBandsUsed();
}
Also used : GenericBackgroundStationaryBasicChecks(boofcv.alg.background.stationary.GenericBackgroundStationaryBasicChecks) BackgroundModelMoving(boofcv.alg.background.BackgroundModelMoving) Homography2D_F32(georegression.struct.homography.Homography2D_F32) ImageType(boofcv.struct.image.ImageType) Test(org.junit.Test)

Aggregations

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