I
- Concrete type of Image
public interface PixelProfileModel<I extends Image<?,I>>
Modifier and Type | Method and Description |
---|---|
float |
computeCost(I image,
Line2d line)
Compute the cost of a vector of samples extracted
along a line in the given image to the internal model.
|
float |
computeMovementDistance(I image,
Line2d line,
int numSamples,
Point2d pt)
Compute the distance between the centre of the given
line and the given point, normalised as a function of
the length of the sampling line.
|
Point2d |
computeNewBest(I image,
Line2d line,
int numSamples)
Extract numSamples samples from the line in the image and
then compare this model at each overlapping position starting
from the first sample at the beginning of the line.
|
void |
updateModel(I image,
Line2d line)
Update the model with a new sample.
|
void updateModel(I image, Line2d line)
image
- the image to extract the sample fromline
- the line across with to samplePoint2d computeNewBest(I image, Line2d line, int numSamples)
image
- the image to sampleline
- the line to sample alongnumSamples
- the number of samples to makefloat computeCost(I image, Line2d line)
image
- the image to sampleline
- the line to sample alongfloat computeMovementDistance(I image, Line2d line, int numSamples, Point2d pt)
image
- the image to sampleline
- the line to sample alongnumSamples
- the number of samples to makept
- the point to compare