public interface BinaryContourInterface
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BinaryContourInterface.Padded
Many contour algorithms require that the binary image has an outside border of all zeros.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<georegression.struct.point.Point2D_I32> |
copyContour(BinaryContourInterface finder,
int contourID)
Convenience function which loads a contour and creates copy of all the points and returns
a new list
|
ConnectRule |
getConnectRule() |
java.util.List<ContourPacked> |
getContours()
Returns a list of contours/blobs found.
|
int |
getMaxContour() |
int |
getMinContour() |
boolean |
isSaveInternalContours() |
void |
loadContour(int contourID,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> storage)
Used to load the pixels associated with a contour.
|
void |
setConnectRule(ConnectRule rule) |
void |
setMaxContour(int length) |
void |
setMinContour(int length) |
void |
setSaveInnerContour(boolean enabled)
Used to toggle on and off the saving of inner contours.
|
void |
writeContour(int contourID,
java.util.List<georegression.struct.point.Point2D_I32> storage)
Overwrites the coordinates of the saved contour.
|
java.util.List<ContourPacked> getContours()
void loadContour(int contourID,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> storage)
contourID - ID of the contour you wish to loadstorage - Storage for the contour points. Must be set to declare new elements.void writeContour(int contourID,
java.util.List<georegression.struct.point.Point2D_I32> storage)
contourID - ID of the contour you wish to loadstorage - Storage for the contour points. Must be set to declare new elements.void setSaveInnerContour(boolean enabled)
enabled - true to enable or false to disableboolean isSaveInternalContours()
void setMinContour(int length)
int getMinContour()
void setMaxContour(int length)
int getMaxContour()
void setConnectRule(ConnectRule rule)
ConnectRule getConnectRule()
static java.util.List<georegression.struct.point.Point2D_I32> copyContour(BinaryContourInterface finder, int contourID)