public class MooreNeighborStrategy extends ContourFollowingStrategy
| Constructor and Description |
|---|
MooreNeighborStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
directedContour(FImage image,
Pixel start,
Pixel from,
Operation<IndependentPair<Pixel,org.openimaj.image.contour.Direction>> operation)
Directed contour following.
|
contourpublic MooreNeighborStrategy()
public void contour(FImage image, Pixel start, Pixel from, Operation<Pixel> operation)
ContourFollowingStrategycontour in class ContourFollowingStrategyimage - the imagestart - the first point on the contourfrom - the pixel that was not a contouroperation - the thing to do for each contour pixel foundpublic void directedContour(FImage image, Pixel start, Pixel from, Operation<IndependentPair<Pixel,org.openimaj.image.contour.Direction>> operation)
image - the imagestart - the starting point on the contourfrom - the pixel that was not a contouroperation - the operation to perform