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.voidsetGrayscaleReconstruction(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:MinimaImpositionImposes minima on a channel based on seed objects and an optional containing mask.- Specified by:
imposeMinimain classMinimaImposition- Parameters:
channel- theChannelon which to impose minimaseeds- theObjectCollectionrepresenting seed objects for minimacontainingMask- an optionalObjectMaskthat constrains the area where minima can be imposed- Returns:
- a new
Channelwith 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.
-