public class FNormalLandmarkModel extends Object implements LandmarkModel<FImage>
FNormalLandmarkModel is a landmark represented by the
surface normal line of a point (which is usually part of a
PointList in an FImage connected by PointListConnections).| Modifier and Type | Class and Description |
|---|---|
static class |
FNormalLandmarkModel.Factory
A factory for producing
FNormalLandmarkModels |
| Constructor and Description |
|---|
FNormalLandmarkModel(PointListConnections connections,
FLineSampler sampler,
int numModelSamples,
int numSearchSamples,
float normalLength)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
computeCost(FImage image,
Point2d point,
PointList pointList)
Evaluate the cost function using the given image and point.
|
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 FNormalLandmarkModel(PointListConnections connections, FLineSampler sampler, int numModelSamples, int numSearchSamples, float normalLength)
connections - connections between points.sampler - sampler for sampling along normalsnumModelSamples - number of samples for the modelnumSearchSamples - number of samples for search; must be bigger than numModelSamplesnormalLength - length of the normal in intrinsic scale unitspublic void updateModel(FImage image, Point2d point, PointList pointList)
LandmarkModelupdateModel 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)
LandmarkModelcomputeCost 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)
LandmarkModelupdatePosition in interface LandmarkModel<FImage>image - the imageinitial - the initial point in the imagepointList - the pointList to which the point belongs