public class FPatchLandmarkModel extends Object implements LandmarkModel<org.openimaj.image.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
FPatchLandmarkModels |
| Constructor and Description |
|---|
FPatchLandmarkModel() |
| Modifier and Type | Method and Description |
|---|---|
float |
computeCost(org.openimaj.image.FImage image,
Point2d point,
PointList pointList)
Evaluate the cost function using the given image and point.
|
protected org.openimaj.image.FImage |
extractBlock(org.openimaj.image.FImage image,
Point2d pt,
int sz) |
protected org.openimaj.math.geometry.shape.Rectangle |
getROI(int x,
int y,
int w,
int h) |
void |
updateModel(org.openimaj.image.FImage image,
Point2d point,
PointList pointList)
Update the internal model of local image content by adding information
from the provided image.
|
org.openimaj.util.pair.ObjectFloatPair<Point2d> |
updatePosition(org.openimaj.image.FImage image,
Point2d initial,
PointList pointList)
Estimate an improved fit based on a local neighbourhood search.
|
public FPatchLandmarkModel()
protected org.openimaj.math.geometry.shape.Rectangle getROI(int x, int y, int w, int h)
protected org.openimaj.image.FImage extractBlock(org.openimaj.image.FImage image, Point2d pt, int sz)
public void updateModel(org.openimaj.image.FImage image, Point2d point, PointList pointList)
LandmarkModelupdateModel in interface LandmarkModel<org.openimaj.image.FImage>image - the imagepoint - the point in the image representing the landmarkpointList - the pointList to which the point belongspublic float computeCost(org.openimaj.image.FImage image, Point2d point, PointList pointList)
LandmarkModelcomputeCost in interface LandmarkModel<org.openimaj.image.FImage>image - the imagepoint - the point in the imagepointList - the pointList to which the point belongspublic org.openimaj.util.pair.ObjectFloatPair<Point2d> updatePosition(org.openimaj.image.FImage image, Point2d initial, PointList pointList)
LandmarkModelupdatePosition in interface LandmarkModel<org.openimaj.image.FImage>image - the imageinitial - the initial point in the imagepointList - the pointList to which the point belongs