Interface PointDeformKeyPoints

  • All Superinterfaces:
    boofcv.struct.distort.Point2Transform2_F32
    All Known Implementing Classes:
    PointDeform_MLS

    public interface PointDeformKeyPoints
    extends boofcv.struct.distort.Point2Transform2_F32

    Defines a mapping which deforms the image based on the location of key points inside the image. Image pixels will gravitate towards closer key points and their distorted location based on some distance metric.

    Concurrency: Do not use this class to render at the same time you're invoking any of its functions! The transformation will be in an unsafe state.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setDestination​(int which, float x, float y)
      Changes the destination location of a single key point
      void setDestination​(java.util.List<georegression.struct.point.Point2D_F32> locations)
      Specifies the distorted location of all the key points.
      void setImageShape​(int width, int height)
      Must be called first.
      void setSource​(int which, float x, float y)
      Changes the source location of a single key point
      void setSource​(java.util.List<georegression.struct.point.Point2D_F32> locations)
      Specifies the location of all the key points.
      • Methods inherited from interface boofcv.struct.distort.Point2Transform2_F32

        compute, copyConcurrent
    • Method Detail

      • setImageShape

        void setImageShape​(int width,
                           int height)
        Must be called first. Specifies the shape of the image this transform will be applied to
        Parameters:
        width - image width
        height - image height
      • setSource

        void setSource​(java.util.List<georegression.struct.point.Point2D_F32> locations)
        Specifies the location of all the key points. The initial distorted location of each keypoint will be set to the same location.
        Parameters:
        locations - Location of key points in undistorted image. Local copy of points is saved.
      • setDestination

        void setDestination​(java.util.List<georegression.struct.point.Point2D_F32> locations)
        Specifies the distorted location of all the key points.
        Parameters:
        locations - location of key points in distorted image. Local copy of points is saved.
      • setSource

        void setSource​(int which,
                       float x,
                       float y)
        Changes the source location of a single key point
        Parameters:
        which - Index of key point to change
        x - distorted x-coordinate
        y - distorted y-coordinate
      • setDestination

        void setDestination​(int which,
                            float x,
                            float y)
        Changes the destination location of a single key point
        Parameters:
        which - Index of key point to change
        x - distorted x-coordinate
        y - distorted y-coordinate