Class MinimaImposition
- Direct Known Subclasses:
MinimaImpositionGrayscaleReconstruction
Abstract base class for imposing minima on a channel for watershed segmentation.
This class provides a framework for different strategies of imposing minima on a channel, which is a crucial step in watershed-based segmentation algorithms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Channel
imposeMinima
(Channel channel, ObjectCollection seeds, Optional<ObjectMask> containingMask) Imposes minima on a channel based on seed objects and an optional containing mask.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MinimaImposition
public MinimaImposition()
-
-
Method Details
-
imposeMinima
public abstract Channel imposeMinima(Channel channel, ObjectCollection seeds, Optional<ObjectMask> containingMask) throws OperationFailedException Imposes minima on a channel based on seed objects and an optional containing mask.- Parameters:
channel
- theChannel
on which to impose minimaseeds
- theObjectCollection
representing seed objects for minimacontainingMask
- an optionalObjectMask
that constrains the area where minima can be imposed- Returns:
- a new
Channel
with imposed minima - Throws:
OperationFailedException
- if the minima imposition operation fails
-