Class PointDeform_MLS

java.lang.Object
boofcv.abst.distort.PointDeform_MLS
All Implemented Interfaces:
PointDeformKeyPoints, Point2Transform2_F32

public class PointDeform_MLS
extends Object
implements PointDeformKeyPoints
  • Constructor Details

  • Method Details

    • compute

      public void compute​(float x, float y, Point2D_F32 out)
      Description copied from interface: Point2Transform2_F32
      Applies transformation
      Specified by:
      compute in interface Point2Transform2_F32
      Parameters:
      x - x-coordinate of point
      y - y-coordinate of point
      out - Transformed point location.
    • copyConcurrent

      public PointDeform_MLS copyConcurrent()
      Description copied from interface: Point2Transform2_F32
      Creates a copy of this transform for use in concurrent application. What that means is that any variable which might be modified by a concurrent call to Point2Transform2_F32.compute(float, float, georegression.struct.point.Point2D_F32) is not passed to the 'copied' output. Expensive to compute models might be passed in as a reference.
      Specified by:
      copyConcurrent in interface Point2Transform2_F32
    • setImageShape

      public void setImageShape​(int width, int height)
      Description copied from interface: PointDeformKeyPoints
      Must be called first. Specifies the shape of the image this transform will be applied to
      Specified by:
      setImageShape in interface PointDeformKeyPoints
      Parameters:
      width - image width
      height - image height
    • setSource

      public void setSource​(List<Point2D_F32> locations)
      Description copied from interface: PointDeformKeyPoints
      Specifies the location of all the key points. The initial distorted location of each keypoint will be set to the same location.
      Specified by:
      setSource in interface PointDeformKeyPoints
      Parameters:
      locations - Location of key points in undistorted image. Local copy of points is saved.
    • setDestination

      public void setDestination​(List<Point2D_F32> locations)
      Description copied from interface: PointDeformKeyPoints
      Specifies the distorted location of all the key points.
      Specified by:
      setDestination in interface PointDeformKeyPoints
      Parameters:
      locations - location of key points in distorted image. Local copy of points is saved.
    • setSource

      public void setSource​(int which, float x, float y)
      Description copied from interface: PointDeformKeyPoints
      Changes the source location of a single key point
      Specified by:
      setSource in interface PointDeformKeyPoints
      Parameters:
      which - Index of key point to change
      x - distorted x-coordinate
      y - distorted y-coordinate
    • setDestination

      public void setDestination​(int which, float x, float y)
      Description copied from interface: PointDeformKeyPoints
      Changes the destination location of a single key point
      Specified by:
      setDestination in interface PointDeformKeyPoints
      Parameters:
      which - Index of key point to change
      x - distorted x-coordinate
      y - distorted y-coordinate
    • getAlgorithm

      public ImageDeformPointMLS_F32 getAlgorithm()