Package boofcv.abst.distort
Class PointDeform_MLS
java.lang.Object
boofcv.abst.distort.PointDeform_MLS
- All Implemented Interfaces:
PointDeformKeyPoints,Point2Transform2_F32
Wrapper around
ImageDeformPointMLS_F32 for PointDeformKeyPoints-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompute(float x, float y, Point2D_F32 out) Applies transformationCreates a copy of this transform for use in concurrent application.voidsetDestination(int which, float x, float y) Changes the destination location of a single key pointvoidsetDestination(List<Point2D_F32> locations) Specifies the distorted location of all the key points.voidsetImageShape(int width, int height) Must be called first.voidsetSource(int which, float x, float y) Changes the source location of a single key pointvoidsetSource(List<Point2D_F32> locations) Specifies the location of all the key points.
-
Constructor Details
-
PointDeform_MLS
-
-
Method Details
-
compute
Description copied from interface:Point2Transform2_F32Applies transformation- Specified by:
computein interfacePoint2Transform2_F32- Parameters:
x- x-coordinate of pointy- y-coordinate of pointout- Transformed point location.
-
copyConcurrent
Description copied from interface:Point2Transform2_F32Creates 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 toPoint2Transform2_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:
copyConcurrentin interfacePoint2Transform2_F32
-
setImageShape
public void setImageShape(int width, int height) Description copied from interface:PointDeformKeyPointsMust be called first. Specifies the shape of the image this transform will be applied to- Specified by:
setImageShapein interfacePointDeformKeyPoints- Parameters:
width- image widthheight- image height
-
setSource
Description copied from interface:PointDeformKeyPointsSpecifies the location of all the key points. The initial distorted location of each keypoint will be set to the same location.- Specified by:
setSourcein interfacePointDeformKeyPoints- Parameters:
locations- Location of key points in undistorted image. Local copy of points is saved.
-
setDestination
Description copied from interface:PointDeformKeyPointsSpecifies the distorted location of all the key points.- Specified by:
setDestinationin interfacePointDeformKeyPoints- 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:PointDeformKeyPointsChanges the source location of a single key point- Specified by:
setSourcein interfacePointDeformKeyPoints- Parameters:
which- Index of key point to changex- distorted x-coordinatey- distorted y-coordinate
-
setDestination
public void setDestination(int which, float x, float y) Description copied from interface:PointDeformKeyPointsChanges the destination location of a single key point- Specified by:
setDestinationin interfacePointDeformKeyPoints- Parameters:
which- Index of key point to changex- distorted x-coordinatey- distorted y-coordinate
-
getAlgorithm
-