public class RemoveWatersheds
extends java.lang.Object
WatershedVincentSoille1991 and merged watershed pixels
into neighboring regions. Since there is no good rule for which region the pixel should be
merged into, it is merged into the first valid one.| Constructor and Description |
|---|
RemoveWatersheds() |
| Modifier and Type | Method and Description |
|---|---|
void |
remove(boofcv.struct.image.GrayS32 segmented)
Removes watersheds from the segmented image.
|
public void remove(boofcv.struct.image.GrayS32 segmented)
WatershedVincentSoille1991.getOutputBorder().
Each watershed is assigned the value of an arbitrary neighbor. 4-connect rule is used for neighbors.
Doesn't matter if initial segmented was done using another connectivity rule. The value of each region i
s reduced by one at the very end.segmented - Entire segmented image (including border of -1 values) with watersheds