Interface ImageDistort<Input extends boofcv.struct.image.ImageBase,​Output extends boofcv.struct.image.ImageBase>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void apply​(Input srcImg, Output dstImg)
      Applies the transform to the entire destination image.
      void apply​(Input srcImg, Output dstImg, int dstX0, int dstY0, int dstX1, int dstY1)
      Applies the transform to only the specified region inside the destination image.
      void apply​(Input srcImg, Output dstImg, boofcv.struct.image.GrayU8 mask)
      Applies the transform, but marks pixels in the mask as 1 = inside, 0 = outside.
      boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> getModel()
      Returns the distortion model.
      boolean getRenderAll()
      Returns the render all flag
      void setModel​(boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> dstToSrc)
      Specifies how pixel coordinates are transformed from the destination to source images.
      void setRenderAll​(boolean renderAll)
      Specifies if the entire output image should be rendered, even if mapping to the source image is outside the source image.
    • Method Detail

      • setModel

        void setModel​(boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> dstToSrc)
        Specifies how pixel coordinates are transformed from the destination to source images.
        Parameters:
        dstToSrc - Pixel coordinate transformation.
      • apply

        void apply​(Input srcImg,
                   Output dstImg)
        Applies the transform to the entire destination image.
        Parameters:
        srcImg - Input image. Not modified.
        dstImg - Output image. Modified.
      • apply

        void apply​(Input srcImg,
                   Output dstImg,
                   boofcv.struct.image.GrayU8 mask)
        Applies the transform, but marks pixels in the mask as 1 = inside, 0 = outside. Where inside pixels are pixels in the dst image with an equivalent pixel in the src image's bounds
        Parameters:
        srcImg - Input image. Not modified.
        dstImg - Output image. Modified.
        mask - Mask. Automatically resized to match dstImg. Modified.
      • apply

        void apply​(Input srcImg,
                   Output dstImg,
                   int dstX0,
                   int dstY0,
                   int dstX1,
                   int dstY1)
        Applies the transform to only the specified region inside the destination image.
        Parameters:
        srcImg - Input image. Not modified.
        dstImg - Output image. Modified.
        dstX0 - Left most crop boundary. Inclusive.
        dstY0 - Top most crop boundary. Inclusive.
        dstX1 - Right most crop boundary. Exclusive.
        dstY1 - Bottom most crop boundary. Exclusive.
      • setRenderAll

        void setRenderAll​(boolean renderAll)
        Specifies if the entire output image should be rendered, even if mapping to the source image is outside the source image.
        Parameters:
        renderAll - true to render all pixels. If false then only pixels inside the source image
      • getRenderAll

        boolean getRenderAll()
        Returns the render all flag
        Returns:
        render all flag
      • getModel

        boofcv.struct.distort.PixelTransform<georegression.struct.point.Point2D_F32> getModel()
        Returns the distortion model.
        Returns:
        model dst to src