Class WatershedVincentSoille1991.Connect8
java.lang.Object
boofcv.alg.segmentation.watershed.WatershedVincentSoille1991
boofcv.alg.segmentation.watershed.WatershedVincentSoille1991.Connect8
- Enclosing class:
- WatershedVincentSoille1991
Implementation which uses a 8-connect rule
-
Nested Class Summary
Nested classes/interfaces inherited from class boofcv.alg.segmentation.watershed.WatershedVincentSoille1991
WatershedVincentSoille1991.Connect4, WatershedVincentSoille1991.Connect8
-
Field Summary
Fields inherited from class boofcv.alg.segmentation.watershed.WatershedVincentSoille1991
currentDistance, currentLabel, distance, fifo, histogram, INIT, MARKER_PIXEL, MASK, output, outputSub, removeWatersheds, WSHED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assignNewToNeighbors
(int index) See if a neighbor has a label ( > 0 ) or has been assigned WSHED ( == 0 ).protected void
checkNeighborsAssign
(int index) Check the neighbors to see if it should become a member or a watershedprotected void
checkNeighborsMasks
(int index) Checks neighbors of pixel 'index' to see if their region is MASK, if so they are assigned the currentLabel and added to fifo.Methods inherited from class boofcv.alg.segmentation.watershed.WatershedVincentSoille1991
checkMask, getOutput, getOutputBorder, getTotalRegions, handleNeighborAssign, process, process, removeWatersheds, sortPixels
-
Constructor Details
-
Connect8
public Connect8()
-
-
Method Details
-
assignNewToNeighbors
protected void assignNewToNeighbors(int index) Description copied from class:WatershedVincentSoille1991
See if a neighbor has a label ( > 0 ) or has been assigned WSHED ( == 0 ). If so set distance of pixel index to 1 and add it to fifo.- Specified by:
assignNewToNeighbors
in classWatershedVincentSoille1991
- Parameters:
index
- Pixel whose neighbors are being examined
-
checkNeighborsAssign
protected void checkNeighborsAssign(int index) Description copied from class:WatershedVincentSoille1991
Check the neighbors to see if it should become a member or a watershed- Specified by:
checkNeighborsAssign
in classWatershedVincentSoille1991
- Parameters:
index
- Index of the target pixel
-
checkNeighborsMasks
protected void checkNeighborsMasks(int index) Description copied from class:WatershedVincentSoille1991
Checks neighbors of pixel 'index' to see if their region is MASK, if so they are assigned the currentLabel and added to fifo.- Specified by:
checkNeighborsMasks
in classWatershedVincentSoille1991
- Parameters:
index
- Pixel whose neighbors are being examined.
-