public static class WatershedVincentSoille1991.Connect4 extends WatershedVincentSoille1991
WatershedVincentSoille1991.Connect4, WatershedVincentSoille1991.Connect8currentDistance, currentLabel, distance, fifo, histogram, INIT, MARKER_PIXEL, MASK, output, outputSub, removeWatersheds, WSHED| Constructor and Description |
|---|
Connect4() |
| Modifier and Type | Method and Description |
|---|---|
protected 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 watershed
|
protected 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.
|
checkMask, getOutput, getOutputBorder, getTotalRegions, handleNeighborAssign, process, process, removeWatersheds, sortPixelsprotected void assignNewToNeighbors(int index)
WatershedVincentSoille1991assignNewToNeighbors in class WatershedVincentSoille1991index - Pixel whose neighbors are being examinedprotected void checkNeighborsAssign(int index)
WatershedVincentSoille1991checkNeighborsAssign in class WatershedVincentSoille1991index - Index of the target pixelprotected void checkNeighborsMasks(int index)
WatershedVincentSoille1991checkNeighborsMasks in class WatershedVincentSoille1991index - Pixel whose neighbors are being examined.