Class MinimaImpositionGrayscaleReconstruction
Imposes minima on a channel using grayscale reconstruction by erosion.
This class implements the MinimaImposition
abstract class to provide a specific
strategy for imposing minima using grayscale reconstruction.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe grayscale reconstruction algorithm to be used.imposeMinima
(Channel channel, ObjectCollection seeds, Optional<ObjectMask> containingMask) Imposes minima on a channel based on seed objects and an optional containing mask.void
setGrayscaleReconstruction
(GrayscaleReconstructionByErosion grayscaleReconstruction) The grayscale reconstruction algorithm to be used.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
MinimaImpositionGrayscaleReconstruction
public MinimaImpositionGrayscaleReconstruction()
-
-
Method Details
-
imposeMinima
public Channel imposeMinima(Channel channel, ObjectCollection seeds, Optional<ObjectMask> containingMask) throws OperationFailedException Description copied from class:MinimaImposition
Imposes minima on a channel based on seed objects and an optional containing mask.- Specified by:
imposeMinima
in classMinimaImposition
- 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
-
getGrayscaleReconstruction
The grayscale reconstruction algorithm to be used. -
setGrayscaleReconstruction
The grayscale reconstruction algorithm to be used.
-