Class WatershedVincentSoille1991.Connect4
java.lang.Object
boofcv.alg.segmentation.watershed.WatershedVincentSoille1991
boofcv.alg.segmentation.watershed.WatershedVincentSoille1991.Connect4
- Enclosing class:
- WatershedVincentSoille1991
Implementation which uses a 4-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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassignNewToNeighbors(int index) See if a neighbor has a label ( > 0 ) or has been assigned WSHED ( == 0 ).protected voidcheckNeighborsAssign(int index) Check the neighbors to see if it should become a member or a watershedprotected voidcheckNeighborsMasks(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
-
Connect4
public Connect4()
-
-
Method Details
-
assignNewToNeighbors
protected void assignNewToNeighbors(int index) Description copied from class:WatershedVincentSoille1991See 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:
assignNewToNeighborsin classWatershedVincentSoille1991- Parameters:
index- Pixel whose neighbors are being examined
-
checkNeighborsAssign
protected void checkNeighborsAssign(int index) Description copied from class:WatershedVincentSoille1991Check the neighbors to see if it should become a member or a watershed- Specified by:
checkNeighborsAssignin classWatershedVincentSoille1991- Parameters:
index- Index of the target pixel
-
checkNeighborsMasks
protected void checkNeighborsMasks(int index) Description copied from class:WatershedVincentSoille1991Checks neighbors of pixel 'index' to see if their region is MASK, if so they are assigned the currentLabel and added to fifo.- Specified by:
checkNeighborsMasksin classWatershedVincentSoille1991- Parameters:
index- Pixel whose neighbors are being examined.
-