Class WatershedYeong
A 'rainfall' watershed algorithm
See:
- 3D watershed based on rainfall-simulation for volume segmentation, Yeong et al. 2009 International Conference on Intelligent Human-Machine Systems and Cybernetics
- An improved watershed algorithm based on efficient computation of shortest paths, Osma-Ruiz et al., Pattern Reconigion(40), 2007
Note:
- Does not record a watershed line
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
If true, exits early and just returns the minima, without any further segmentationsegment
(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) Segments a channel to produce an object-collection.void
setExitWithMinima
(boolean exitWithMinima) If true, exits early and just returns the minima, without any further segmentationMethods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjects
checkUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeeds
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
WatershedYeong
public WatershedYeong()
-
-
Method Details
-
segment
public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException Description copied from class:SegmentChannelIntoObjects
Segments a channel to produce an object-collection.- Specified by:
segment
in classSegmentChannelIntoObjects
- Parameters:
channel
- the channel to segmentobjectMask
- an object-mask that can restrict which areas of the channel are considered.seeds
- seeds that can be used to determine starting-points for segmentation regions.- Returns:
- a newly created collection of objects for each segment. The created objects will always exist inside the channel's extent.
- Throws:
SegmentationFailedException
- if anything goes wrong during the segmentation.
-
isExitWithMinima
public boolean isExitWithMinima()If true, exits early and just returns the minima, without any further segmentation -
setExitWithMinima
public void setExitWithMinima(boolean exitWithMinima) If true, exits early and just returns the minima, without any further segmentation
-