public class ContourTracerBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected GrayU8 |
binary |
protected int |
dir |
protected int |
indexBinary |
protected int |
label |
protected int[] |
nextDirection |
protected int[] |
offsetsBinary |
protected ConnectRule |
rule |
protected int |
ruleN |
protected int |
x |
protected int |
y |
| Constructor and Description |
|---|
ContourTracerBase(ConnectRule rule)
Specifies connectivity rule
|
| Modifier and Type | Method and Description |
|---|---|
void |
setInputs(GrayU8 binary) |
protected final ConnectRule rule
protected final int ruleN
protected GrayU8 binary
protected int x
protected int y
protected int label
protected int dir
protected int indexBinary
protected int[] offsetsBinary
protected int[] nextDirection
public ContourTracerBase(ConnectRule rule)
rule - Specifies 4 or 8 as connectivity rulepublic void setInputs(GrayU8 binary)
binary - Binary image with a border of zeros added to the outside.