Class ExteriorContour
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
Finds the exterior outer contour for a
Mask that forms its outline.
It always creates a new mask for the result, without consuming the input.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromMask(Mask mask) Creates aMaskgiven the entity provided by the delegate.booleanIf true, any 3D mask is flattened in the z-dimension (maximum intensity projection) to make it 2DbooleanvoidsetFlatten(boolean flatten) If true, any 3D mask is flattened in the z-dimension (maximum intensity projection) to make it 2DvoidsetOutlineAtBoundary(boolean outlineAtBoundary) Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary
get, getMask, setMaskMethods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ExteriorContour
public ExteriorContour()
-
-
Method Details
-
createFromMask
Description copied from class:MaskProviderUnaryCreates aMaskgiven the entity provided by the delegate.- Specified by:
createFromMaskin classMaskProviderUnary- Parameters:
mask- the entity provided by the delegate.- Returns:
- the created
Maskthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-
isFlatten
public boolean isFlatten()If true, any 3D mask is flattened in the z-dimension (maximum intensity projection) to make it 2D -
setFlatten
public void setFlatten(boolean flatten) If true, any 3D mask is flattened in the z-dimension (maximum intensity projection) to make it 2D -
isOutlineAtBoundary
public boolean isOutlineAtBoundary() -
setOutlineAtBoundary
public void setOutlineAtBoundary(boolean outlineAtBoundary)
-