public abstract class ContourFollowingStrategy extends Object
Many examples can be found in this tutorial.
Constructor and Description |
---|
ContourFollowingStrategy() |
Modifier and Type | Method and Description |
---|---|
List<Pixel> |
contour(FImage image,
Pixel start,
Pixel from)
Follow the contour, adding each pixel to a list.
|
abstract void |
contour(FImage image,
Pixel start,
Pixel from,
Operation<Pixel> operation)
Given some starting pixel in an image on a contour and the direction of a
non starting image, return each pixel on a contour from the start pixel
in the image.
|
public ContourFollowingStrategy()
public List<Pixel> contour(FImage image, Pixel start, Pixel from)
image
- the imagestart
- the starting point on the contourfrom
- the pixel that was not a contourpublic abstract void contour(FImage image, Pixel start, Pixel from, Operation<Pixel> operation)
image
- the imagestart
- the first point on the contourfrom
- the pixel that was not a contouroperation
- the thing to do for each contour pixel found