public class LinearExternalContours
extends java.lang.Object
getExternalContours().
[1] Fu Chang and Chun-jen Chen and Chi-jen Lu, "A linear-time component-labeling algorithm using contour
tracing technique" Computer Vision and Image Understanding, 2004
[2] Rosenfeld, Azriel. "Digital topology." American Mathematical Monthly (1979): 621-630.
| Constructor and Description |
|---|
LinearExternalContours(ConnectRule rule) |
| Modifier and Type | Method and Description |
|---|---|
ConnectRule |
getConnectRule() |
PackedSetsPoint2D_I32 |
getExternalContours() |
int |
getMaxContourLength() |
int |
getMinContourLength() |
void |
process(GrayU8 binary,
int adjustX,
int adjustY)
Detects contours inside the binary image.
|
void |
setConnectRule(ConnectRule rule) |
void |
setMaxContourLength(int maxContourLength) |
void |
setMinContourLength(int minContourLength) |
public LinearExternalContours(ConnectRule rule)
public void process(GrayU8 binary, int adjustX, int adjustY)
binary - Binary image. Will be modified. See class descriptionadjustX - adjustment applied to coordinate in binary image for contour. 0 or 1 is typicaladjustY - adjustment applied to coordinate in binary image for contour. 0 or 1 is typicalpublic ConnectRule getConnectRule()
public void setConnectRule(ConnectRule rule)
public PackedSetsPoint2D_I32 getExternalContours()
public int getMaxContourLength()
public void setMaxContourLength(int maxContourLength)
public int getMinContourLength()
public void setMinContourLength(int minContourLength)