Package boofcv.alg.distort
Class DistortImageOps
- java.lang.Object
-
- boofcv.alg.distort.DistortImageOps
-
public class DistortImageOps extends java.lang.ObjectProvides common function for distorting images.
- See Also:
FDistort
-
-
Constructor Summary
Constructors Constructor Description DistortImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static georegression.struct.shapes.RectangleLength2D_I32boundBox(int srcWidth, int srcHeight, int dstWidth, int dstHeight, georegression.struct.point.Point2D_F32 work, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform)Finds an axis-aligned bounding box which would contain a image after it has been transformed.static georegression.struct.shapes.RectangleLength2D_I32boundBox(int srcWidth, int srcHeight, georegression.struct.point.Point2D_F32 work, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform)Finds an axis-aligned bounding box which would contain a image after it has been transformed.static georegression.struct.shapes.RectangleLength2D_F32boundBox_F32(int srcWidth, int srcHeight, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform, georegression.struct.point.Point2D_F32 transformed)Finds an axis-aligned bounding box which would contain a image after it has been transformed.static georegression.struct.shapes.RectangleLength2D_F64boundBox_F64(int srcWidth, int srcHeight, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F64> transform, georegression.struct.point.Point2D_F64 transformed)Finds an axis-aligned bounding box which would contain a image after it has been transformed.
-
-
-
Method Detail
-
boundBox
public static georegression.struct.shapes.RectangleLength2D_I32 boundBox(int srcWidth, int srcHeight, int dstWidth, int dstHeight, georegression.struct.point.Point2D_F32 work, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform)Finds an axis-aligned bounding box which would contain a image after it has been transformed. A sanity check is done to made sure it is contained inside the destination image's bounds. If it is totally outside then a rectangle with negative width or height is returned.- Parameters:
srcWidth- Width of the source imagesrcHeight- Height of the source imagedstWidth- Width of the destination imagedstHeight- Height of the destination imagetransform- Transform being applied to the image- Returns:
- Bounding box
-
boundBox
public static georegression.struct.shapes.RectangleLength2D_I32 boundBox(int srcWidth, int srcHeight, georegression.struct.point.Point2D_F32 work, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform)Finds an axis-aligned bounding box which would contain a image after it has been transformed. The returned bounding box can be larger then the original image.- Parameters:
srcWidth- Width of the source imagesrcHeight- Height of the source imagetransform- Transform being applied to the image- Returns:
- Bounding box
-
boundBox_F32
public static georegression.struct.shapes.RectangleLength2D_F32 boundBox_F32(int srcWidth, int srcHeight, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> transform, georegression.struct.point.Point2D_F32 transformed)Finds an axis-aligned bounding box which would contain a image after it has been transformed. The returned bounding box can be larger then the original image.- Parameters:
srcWidth- Width of the source imagesrcHeight- Height of the source imagetransform- Transform being applied to the image- Returns:
- Bounding box
-
boundBox_F64
public static georegression.struct.shapes.RectangleLength2D_F64 boundBox_F64(int srcWidth, int srcHeight, boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F64> transform, georegression.struct.point.Point2D_F64 transformed)Finds an axis-aligned bounding box which would contain a image after it has been transformed. The returned bounding box can be larger then the original image.- Parameters:
srcWidth- Width of the source imagesrcHeight- Height of the source imagetransform- Transform being applied to the image- Returns:
- Bounding box
-
-