boofcv.alg.segmentation.watershed
Class RemoveWatersheds
- java.lang.Object
-
- boofcv.alg.segmentation.watershed.RemoveWatersheds
-
public class RemoveWatersheds extends java.lang.ObjectExamines a segmented image created byWatershedVincentSoille1991and 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 Summary
Constructors Constructor and Description RemoveWatersheds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidremove(GrayS32 segmented)Removes watersheds from the segmented image.
-
-
-
Method Detail
-
remove
public void remove(GrayS32 segmented)
Removes watersheds from the segmented image. The input image must be the entire original segmented image and assumes the outside border is filled with values < 0. To access this image callWatershedVincentSoille1991.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.- Parameters:
segmented- Entire segmented image (including border of -1 values) with watersheds
-
-
DataMelt 3.0 © DataMelt by jWork.ORG