Package boofcv.abst.distort
Class PointDeform_MLS
- java.lang.Object
-
- boofcv.abst.distort.PointDeform_MLS
-
- All Implemented Interfaces:
PointDeformKeyPoints,boofcv.struct.distort.Point2Transform2_F32
public class PointDeform_MLS extends java.lang.Object implements PointDeformKeyPoints
Wrapper aroundImageDeformPointMLS_F32forPointDeformKeyPoints
-
-
Constructor Summary
Constructors Constructor Description PointDeform_MLS(ImageDeformPointMLS_F32 alg, int rows, int cols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(float x, float y, georegression.struct.point.Point2D_F32 out)PointDeform_MLScopyConcurrent()ImageDeformPointMLS_F32getAlgorithm()voidsetDestination(int which, float x, float y)Changes the destination location of a single key pointvoidsetDestination(java.util.List<georegression.struct.point.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(java.util.List<georegression.struct.point.Point2D_F32> locations)Specifies the location of all the key points.
-
-
-
Constructor Detail
-
PointDeform_MLS
public PointDeform_MLS(ImageDeformPointMLS_F32 alg, int rows, int cols)
-
-
Method Detail
-
compute
public void compute(float x, float y, georegression.struct.point.Point2D_F32 out)- Specified by:
computein interfaceboofcv.struct.distort.Point2Transform2_F32
-
copyConcurrent
public PointDeform_MLS copyConcurrent()
- Specified by:
copyConcurrentin interfaceboofcv.struct.distort.Point2Transform2_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
public void setSource(java.util.List<georegression.struct.point.Point2D_F32> locations)
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
public void setDestination(java.util.List<georegression.struct.point.Point2D_F32> locations)
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
public ImageDeformPointMLS_F32 getAlgorithm()
-
-