I - Type of imageT - Type of the result of the samplingpublic interface LineSampler<I extends Image<?,I>,T>
LineSampler defines an interface for objects capable
of extracting information from pixels along a line in an image.| Modifier and Type | Method and Description |
|---|---|
T |
extractSamples(Line2d line,
I image,
int numSamples)
Extract a numSamples samples along the given line
in the given image.
|
Line2d |
getSampleLine(Line2d line,
I image,
int numSamples)
Get the a line representing the extremities of
the pixels that are actually sampled.
|
T extractSamples(Line2d line, I image, int numSamples)
line - the lineimage - the image to sample fromnumSamples - the number of samplesLine2d getSampleLine(Line2d line, I image, int numSamples)
line - the lineimage - the image to sample fromnumSamples - the number of samples