public class BinaryLabelContourFinderChang2004 extends java.lang.Object implements BinaryLabelContourFinder
LinearContourLabelChang2004 for
BinaryLabelContourFinderBinaryContourInterface.Padded| Constructor and Description |
|---|
BinaryLabelContourFinderChang2004() |
| Modifier and Type | Method and Description |
|---|---|
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 |
process(GrayU8 binary,
GrayS32 labeled)
Processes the binary image to find the contour of and label blobs.
|
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> list)
Overwrites the coordinates of the saved contour.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyContourpublic void process(GrayU8 binary, GrayS32 labeled)
BinaryLabelContourFinderprocess in interface BinaryLabelContourFinderbinary - Input binary image. Not modified.labeled - Output. Labeled image. Modified.public java.util.List<ContourPacked> getContours()
BinaryContourInterfacegetContours in interface BinaryContourInterfacepublic void loadContour(int contourID,
org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_I32> storage)
BinaryContourInterfaceloadContour in interface BinaryContourInterfacecontourID - ID of the contour you wish to loadstorage - Storage for the contour points. Must be set to declare new elements.public void writeContour(int contourID,
java.util.List<georegression.struct.point.Point2D_I32> list)
BinaryContourInterfacewriteContour in interface BinaryContourInterfacecontourID - ID of the contour you wish to loadlist - Storage for the contour points. Must be set to declare new elements.public void setSaveInnerContour(boolean enabled)
BinaryContourInterfacesetSaveInnerContour in interface BinaryContourInterfaceenabled - true to enable or false to disablepublic boolean isSaveInternalContours()
isSaveInternalContours in interface BinaryContourInterfacepublic void setMinContour(int length)
setMinContour in interface BinaryContourInterfacepublic int getMinContour()
getMinContour in interface BinaryContourInterfacepublic void setMaxContour(int length)
setMaxContour in interface BinaryContourInterfacepublic int getMaxContour()
getMaxContour in interface BinaryContourInterfacepublic void setConnectRule(ConnectRule rule)
setConnectRule in interface BinaryContourInterfacepublic ConnectRule getConnectRule()
getConnectRule in interface BinaryContourInterface