Package net.algart.contours
Class ContourJoiner
java.lang.Object
net.algart.contours.ContourJoiner
Joiner of contours.
Note that this class guarantees full 100% joining of only 4-connected contours (external and internal). Contours of 8-connected objects, in some situations, are not joined completely. It allows to use more simple and efficient algorithm with a guarantee that it will not require a lot of memory (more than necessary for storing results and the largest matrix, necessary for "drawing" any source contour).
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptionintbooleanhasNeighboursToJoin(int objectIndex) booleanbooleanneedToJoin(int objectIndex1, int objectIndex2) static ContourJoinernewInstance(Contours contours, Integer gridStepLog, int[] joinedLabelsMap) static ContourJoinernewInstance(Contours contours, Integer gridStepLog, int[] joinedLabelsMap, int defaultJoinedLabel) setInterrupter(BooleanSupplier interrupter) setJoiningOrder(ContourJoiner.JoiningOrder joiningOrder) setMeasureTimingLevel(int measureTimingLevel) setPackResultContours(boolean packResultContours)  
- 
Field Details
- 
MAX_GRID_STEP_LOG
public static final int MAX_GRID_STEP_LOG- See Also:
 
 
 - 
 - 
Method Details
- 
newInstance
public static ContourJoiner newInstance(Contours contours, Integer gridStepLog, int[] joinedLabelsMap)  - 
newInstance
public static ContourJoiner newInstance(Contours contours, Integer gridStepLog, int[] joinedLabelsMap, int defaultJoinedLabel)  - 
getJoiningOrder
 - 
setJoiningOrder
 - 
isPackResultContours
public boolean isPackResultContours() - 
setPackResultContours
 - 
getMeasureTimingLevel
public int getMeasureTimingLevel() - 
setMeasureTimingLevel
 - 
getInterrupter
 - 
setInterrupter
 - 
containingRectangle
 - 
joinContours
 - 
needToJoin
public boolean needToJoin(int objectIndex1, int objectIndex2)  - 
hasNeighboursToJoin
public boolean hasNeighboursToJoin(int objectIndex)  - 
timingInfo
 
 -