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<org.openimaj.image.pixel.Pixel> |
contour(org.openimaj.image.FImage image,
org.openimaj.image.pixel.Pixel start,
org.openimaj.image.pixel.Pixel from)
Follow the contour, adding each pixel to a list.
|
abstract void |
contour(org.openimaj.image.FImage image,
org.openimaj.image.pixel.Pixel start,
org.openimaj.image.pixel.Pixel from,
org.openimaj.util.function.Operation<org.openimaj.image.pixel.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<org.openimaj.image.pixel.Pixel> contour(org.openimaj.image.FImage image, org.openimaj.image.pixel.Pixel start, org.openimaj.image.pixel.Pixel from)
image - the imagestart - the starting point on the contourfrom - the pixel that was not a contourpublic abstract void contour(org.openimaj.image.FImage image, org.openimaj.image.pixel.Pixel start, org.openimaj.image.pixel.Pixel from, org.openimaj.util.function.Operation<org.openimaj.image.pixel.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