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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(float x, float y, Point2D_F32 out) Applies transformationCreates a copy of this transform for use in concurrent application.void
setDestination
(int which, float x, float y) Changes the destination location of a single key pointvoid
setDestination
(List<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 pointvoid
setSource
(List<Point2D_F32> locations) Specifies the location of all the key points.
-
Constructor Details
-
PointDeform_MLS
-
-
Method Details
-
compute
Description copied from interface:Point2Transform2_F32
Applies transformation- Specified by:
compute
in interfacePoint2Transform2_F32
- Parameters:
x
- x-coordinate of pointy
- y-coordinate of pointout
- Transformed point location.
-
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 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:
copyConcurrent
in interfacePoint2Transform2_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 interfacePointDeformKeyPoints
- Parameters:
width
- image widthheight
- image height
-
setSource
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 interfacePointDeformKeyPoints
- Parameters:
locations
- Location of key points in undistorted image. Local copy of points is saved.
-
setDestination
Description copied from interface:PointDeformKeyPoints
Specifies the distorted location of all the key points.- Specified by:
setDestination
in 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:PointDeformKeyPoints
Changes the source location of a single key point- Specified by:
setSource
in 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:PointDeformKeyPoints
Changes the destination location of a single key point- Specified by:
setDestination
in interfacePointDeformKeyPoints
- Parameters:
which
- Index of key point to changex
- distorted x-coordinatey
- distorted y-coordinate
-
getAlgorithm
-