Class MorphologicalOperation
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
Applies an ImageJ (2D) morphological operation to each slice
Note that the slices are processed independently of each other, as the procedure only supports 2D morphological operations.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromMask
(Mask mask) Creates aMask
given the entity provided by the delegate.One of: open, close, fill, erode, dilate, skel, outlineint
iterations for erode, dilate, open, closevoid
setCommand
(String command) One of: open, close, fill, erode, dilate, skel, outlinevoid
setIterations
(int iterations) iterations for erode, dilate, open, closeMethods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMask
Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStack
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
-
MorphologicalOperation
public MorphologicalOperation()
-
-
Method Details
-
createFromMask
Description copied from class:MaskProviderUnary
Creates aMask
given the entity provided by the delegate.- Specified by:
createFromMask
in classMaskProviderUnary
- Parameters:
mask
- the entity provided by the delegate.- Returns:
- the created
Mask
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getCommand
One of: open, close, fill, erode, dilate, skel, outline -
setCommand
One of: open, close, fill, erode, dilate, skel, outline -
getIterations
public int getIterations()iterations for erode, dilate, open, close -
setIterations
public void setIterations(int iterations) iterations for erode, dilate, open, close
-