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 aMask
given the entity provided by the delegate.boolean
If true, any 3D mask is flattened in the z-dimension (maximum intensity projection) to make it 2Dboolean
void
setFlatten
(boolean flatten) If true, any 3D mask is flattened in the z-dimension (maximum intensity projection) to make it 2Dvoid
setOutlineAtBoundary
(boolean outlineAtBoundary) Methods 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
-
ExteriorContour
public ExteriorContour()
-
-
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.
-
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)
-