Search in sources :

Example 6 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class TestBackgroundMovingGaussian_IL method create.

@Override
public <T extends ImageBase<T>> BackgroundModelMoving<T, Homography2D_F32> create(ImageType<T> imageType) {
    PointTransformHomography_F32 transform = new PointTransformHomography_F32();
    BackgroundMovingGaussian_IL alg = new BackgroundMovingGaussian_IL(0.05f, 16, transform, InterpolationType.BILINEAR, imageType);
    alg.setInitialVariance(12);
    return alg;
}
Also used : PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32)

Example 7 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class TestBackgroundMovingGaussian_PL method create.

@Override
public <T extends ImageBase<T>> BackgroundModelMoving<T, Homography2D_F32> create(ImageType<T> imageType) {
    PointTransformHomography_F32 transform = new PointTransformHomography_F32();
    BackgroundMovingGaussian_PL alg = new BackgroundMovingGaussian_PL(0.05f, 16, transform, InterpolationType.BILINEAR, imageType);
    alg.setInitialVariance(12);
    return alg;
}
Also used : PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32)

Example 8 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class TestBackgroundMovingGaussian_SB method create.

@Override
public <T extends ImageBase<T>> BackgroundModelMoving<T, Homography2D_F32> create(ImageType<T> imageType) {
    PointTransformHomography_F32 transform = new PointTransformHomography_F32();
    BackgroundMovingGaussian_SB alg = new BackgroundMovingGaussian_SB(0.05f, 50, transform, InterpolationType.BILINEAR, imageType.getImageClass());
    alg.setInitialVariance(12);
    return alg;
}
Also used : PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32)

Example 9 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class ImplRectifyImageOps_F32 method transformPixelToRect.

public static Point2Transform2_F32 transformPixelToRect(CameraPinholeRadial param, FMatrixRMaj rectify) {
    Point2Transform2_F32 remove_p_to_p = narrow(param).undistort_F32(true, true);
    PointTransformHomography_F32 rectifyDistort = new PointTransformHomography_F32(rectify);
    return new SequencePoint2Transform2_F32(remove_p_to_p, rectifyDistort);
}
Also used : PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32) SequencePoint2Transform2_F32(boofcv.struct.distort.SequencePoint2Transform2_F32) Point2Transform2_F32(boofcv.struct.distort.Point2Transform2_F32) SequencePoint2Transform2_F32(boofcv.struct.distort.SequencePoint2Transform2_F32)

Example 10 with PointTransformHomography_F32

use of boofcv.alg.distort.PointTransformHomography_F32 in project BoofCV by lessthanoptimal.

the class ImplRectifyImageOps_F32 method fullViewLeft.

public static void fullViewLeft(int imageWidth, int imageHeight, FMatrixRMaj rectifyLeft, FMatrixRMaj rectifyRight) {
    Point2Transform2_F32 tranLeft = new PointTransformHomography_F32(rectifyLeft);
    RectangleLength2D_F32 bound = DistortImageOps.boundBox_F32(imageWidth, imageHeight, new PointToPixelTransform_F32(tranLeft));
    float scaleX = imageWidth / bound.width;
    float scaleY = imageHeight / bound.height;
    float scale = (float) Math.min(scaleX, scaleY);
    adjustUncalibrated(rectifyLeft, rectifyRight, bound, scale);
}
Also used : PointTransformHomography_F32(boofcv.alg.distort.PointTransformHomography_F32) PointToPixelTransform_F32(boofcv.alg.distort.PointToPixelTransform_F32) RectangleLength2D_F32(georegression.struct.shapes.RectangleLength2D_F32) SequencePoint2Transform2_F32(boofcv.struct.distort.SequencePoint2Transform2_F32) Point2Transform2_F32(boofcv.struct.distort.Point2Transform2_F32)

Aggregations

PointTransformHomography_F32 (boofcv.alg.distort.PointTransformHomography_F32)12 Point2Transform2_F32 (boofcv.struct.distort.Point2Transform2_F32)4 SequencePoint2Transform2_F32 (boofcv.struct.distort.SequencePoint2Transform2_F32)4 FMatrixRMaj (org.ejml.data.FMatrixRMaj)4 PointToPixelTransform_F32 (boofcv.alg.distort.PointToPixelTransform_F32)3 RectangleLength2D_F32 (georegression.struct.shapes.RectangleLength2D_F32)2 Test (org.junit.Test)2 ConfigGeneralDetector (boofcv.abst.feature.detect.interest.ConfigGeneralDetector)1 PointTracker (boofcv.abst.feature.tracker.PointTracker)1 BackgroundModelMoving (boofcv.alg.background.BackgroundModelMoving)1 PinholePtoN_F32 (boofcv.alg.distort.pinhole.PinholePtoN_F32)1 ConfigBackgroundBasic (boofcv.factory.background.ConfigBackgroundBasic)1 ConfigBackgroundGaussian (boofcv.factory.background.ConfigBackgroundGaussian)1 ConfigBackgroundGmm (boofcv.factory.background.ConfigBackgroundGmm)1 FactoryPointTracker (boofcv.factory.feature.tracker.FactoryPointTracker)1 ImageGridPanel (boofcv.gui.image.ImageGridPanel)1 MediaManager (boofcv.io.MediaManager)1 SimpleImageSequence (boofcv.io.image.SimpleImageSequence)1 DefaultMediaManager (boofcv.io.wrapper.DefaultMediaManager)1 GrayF32 (boofcv.struct.image.GrayF32)1