public interface PointDeformKeyPoints extends Point2Transform2_F32
Defines a mapping which deforms the image based on the location of key points inside the image.
Image pixels will gravitate towards closer key points and their distorted location based on some distance metric.
Concurrency: Do not use this class to render at the same time you're invoking any of its functions! The transformation will be in an unsafe state.
| Modifier and Type | Method and Description |
|---|---|
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.
|
computevoid setImageShape(int width,
int height)
width - image widthheight - image heightvoid setSource(java.util.List<georegression.struct.point.Point2D_F32> locations)
locations - Location of key points in undistorted image. Local copy of points is saved.void setDestination(java.util.List<georegression.struct.point.Point2D_F32> locations)
locations - location of key points in distorted image. Local copy of points is saved.void setSource(int which,
float x,
float y)
which - Index of key point to changex - distorted x-coordinatey - distorted y-coordinatevoid setDestination(int which,
float x,
float y)
which - Index of key point to changex - distorted x-coordinatey - distorted y-coordinate