Class DistortImageOps


  • public class DistortImageOps
    extends java.lang.Object

    Provides 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_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.
      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.
      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.
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DistortImageOps

        public DistortImageOps()
    • 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 image
        srcHeight - Height of the source image
        dstWidth - Width of the destination image
        dstHeight - Height of the destination image
        transform - 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 image
        srcHeight - Height of the source image
        transform - 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 image
        srcHeight - Height of the source image
        transform - 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 image
        srcHeight - Height of the source image
        transform - Transform being applied to the image
        Returns:
        Bounding box