public class PointDeform_MLS extends java.lang.Object implements PointDeformKeyPoints
ImageDeformPointMLS_F32 for PointDeformKeyPoints| Constructor and Description |
|---|
PointDeform_MLS(ImageDeformPointMLS_F32 alg,
int rows,
int cols) |
| Modifier and Type | Method and Description |
|---|---|
void |
compute(float x,
float y,
georegression.struct.point.Point2D_F32 out)
Applies transformation
|
ImageDeformPointMLS_F32 |
getAlgorithm() |
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.
|
public PointDeform_MLS(ImageDeformPointMLS_F32 alg, int rows, int cols)
public void compute(float x,
float y,
georegression.struct.point.Point2D_F32 out)
Point2Transform2_F32compute in interface Point2Transform2_F32x - x-coordinate of pointy - y-coordinate of pointout - Transformed point location.public void setImageShape(int width,
int height)
PointDeformKeyPointssetImageShape in interface PointDeformKeyPointswidth - image widthheight - image heightpublic void setSource(java.util.List<georegression.struct.point.Point2D_F32> locations)
PointDeformKeyPointssetSource in interface PointDeformKeyPointslocations - Location of key points in undistorted image. Local copy of points is saved.public void setDestination(java.util.List<georegression.struct.point.Point2D_F32> locations)
PointDeformKeyPointssetDestination in interface PointDeformKeyPointslocations - location of key points in distorted image. Local copy of points is saved.public void setSource(int which,
float x,
float y)
PointDeformKeyPointssetSource in interface PointDeformKeyPointswhich - Index of key point to changex - distorted x-coordinatey - distorted y-coordinatepublic void setDestination(int which,
float x,
float y)
PointDeformKeyPointssetDestination in interface PointDeformKeyPointswhich - Index of key point to changex - distorted x-coordinatey - distorted y-coordinatepublic ImageDeformPointMLS_F32 getAlgorithm()