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