public class BinaryContourFinderLinearExternal extends java.lang.Object implements BinaryContourFinder, BinaryContourInterface.Padded
LinearExternalContoursBinaryContourInterface.Padded| Constructor and Description |
|---|
BinaryContourFinderLinearExternal() |
| 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 |
isCreatePaddedCopy() |
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)
Processes the binary image to find the contour.
|
void |
setConnectRule(ConnectRule rule) |
void |
setCoordinateAdjustment(int x,
int y)
Adjustment applied to pixel coordinate of contour points.
|
void |
setCreatePaddedCopy(boolean padded)
If this is set o true then internally it will create a copy of the input image with a 1-pixel border added.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyContourpublic void process(GrayU8 binary)
BinaryContourFinderprocess in interface BinaryContourFinderbinary - Input binary image. Not 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> storage)
BinaryContourInterfacewriteContour 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 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 BinaryContourInterfacepublic void setCreatePaddedCopy(boolean padded)
BinaryContourInterface.PaddedsetCreatePaddedCopy in interface BinaryContourInterface.Paddedpublic boolean isCreatePaddedCopy()
isCreatePaddedCopy in interface BinaryContourInterface.Paddedpublic void setCoordinateAdjustment(int x,
int y)
BinaryContourInterface.PaddedsetCoordinateAdjustment in interface BinaryContourInterface.Padded