public class FPatchLandmarkModel extends Object implements LandmarkModel<FImage>
FPatchLandmarkModel
is a landmark represented by the
local patch of pixels around of a point in an FImage
.Modifier and Type | Class and Description |
---|---|
static class |
FPatchLandmarkModel.Factory
A factory for producing
FPatchLandmarkModel s |
Constructor and Description |
---|
FPatchLandmarkModel() |
Modifier and Type | Method and Description |
---|---|
float |
computeCost(FImage image,
Point2d point,
PointList pointList)
Evaluate the cost function using the given image and point.
|
protected FImage |
extractBlock(FImage image,
Point2d pt,
int sz) |
protected Rectangle |
getROI(int x,
int y,
int w,
int h) |
void |
updateModel(FImage image,
Point2d point,
PointList pointList)
Update the internal model of local image content by adding information
from the provided image.
|
ObjectFloatPair<Point2d> |
updatePosition(FImage image,
Point2d initial,
PointList pointList)
Estimate an improved fit based on a local neighbourhood search.
|
public FPatchLandmarkModel()
protected FImage extractBlock(FImage image, Point2d pt, int sz)
public void updateModel(FImage image, Point2d point, PointList pointList)
LandmarkModel
updateModel
in interface LandmarkModel<FImage>
image
- the imagepoint
- the point in the image representing the landmarkpointList
- the pointList to which the point belongspublic float computeCost(FImage image, Point2d point, PointList pointList)
LandmarkModel
computeCost
in interface LandmarkModel<FImage>
image
- the imagepoint
- the point in the imagepointList
- the pointList to which the point belongspublic ObjectFloatPair<Point2d> updatePosition(FImage image, Point2d initial, PointList pointList)
LandmarkModel
updatePosition
in interface LandmarkModel<FImage>
image
- the imageinitial
- the initial point in the imagepointList
- the pointList to which the point belongs