Package boofcv.alg.filter.binary
Class ContourTracerBase
java.lang.Object
boofcv.alg.filter.binary.ContourTracerBase
Base implementation for different tracer connectivity rules.
-
Field Summary
Modifier and TypeFieldDescriptionprotected GrayU8
protected int
protected int
protected int
protected int[]
protected int[]
protected final ConnectRule
protected final int
protected int
protected int
-
Constructor Summary
-
Method Summary
-
Field Details
-
rule
-
ruleN
protected final int ruleN -
binary
-
x
protected int x -
y
protected int y -
label
protected int label -
dir
protected int dir -
indexBinary
protected int indexBinary -
offsetsBinary
protected int[] offsetsBinary -
nextDirection
protected int[] nextDirection
-
-
Constructor Details
-
ContourTracerBase
Specifies connectivity rule- Parameters:
rule
- Specifies 4 or 8 as connectivity rule
-
-
Method Details
-
setInputs
Specifies input binary image.- Parameters:
binary
- Binary image with a border of zeros added to the outside.
-