Package net.algart.contours
Class ContourFiller
java.lang.Object
net.algart.contours.ContourFiller
-
Method Summary
Modifier and TypeMethodDescriptionint
dimX()
int
dimY()
void
fillContours
(int[] contourIndexes, int from, int to, int label) void
void
int
int[]
boolean
boolean
static ContourFiller
newInstance
(Contours contours, long startX, long startY, long dimX, long dimY) static ContourFiller
newInstance
(Contours contours, Class<?> elementType, long startX, long startY, long dimX, long dimY) int
setIndexingBase
(int indexingBase) setLabelsMap
(int[] labelsMap) setLabelToFillerDefault
(IntUnaryOperator labelToFillerDefault) setNeedToFill
(IntPredicate needToFill) setNeedToUnpack
(boolean needToUnpack) setNeedToUnpackDiagonals
(boolean needToUnpackDiagonals)
-
Method Details
-
newInstance
public static ContourFiller newInstance(Contours contours, long startX, long startY, long dimX, long dimY) -
newInstance
public static ContourFiller newInstance(Contours contours, Class<?> elementType, long startX, long startY, long dimX, long dimY) -
getNeedToFill
-
setNeedToFill
-
isNeedToUnpack
public boolean isNeedToUnpack() -
setNeedToUnpack
-
isNeedToUnpackDiagonals
public boolean isNeedToUnpackDiagonals() -
setNeedToUnpackDiagonals
-
getLabelsMap
public int[] getLabelsMap() -
setLabelsMap
-
getIndexingBase
public int getIndexingBase() -
setIndexingBase
-
getLabelToFillerDefault
-
setLabelToFillerDefault
-
dimX
public int dimX() -
dimY
public int dimY() -
findAndSortNecessaryContours
public void findAndSortNecessaryContours() -
numberOfNecessaryContours
public int numberOfNecessaryContours() -
fillNecessaryContours
public void fillNecessaryContours() -
fillContours
public void fillContours(int[] contourIndexes, int from, int to, int label) -
getLabels
-