Class ConvexHull2D
- All Implemented Interfaces:
Provider<Mask>
,ProviderAsStack
Sets particular voxels to high only if they exist on the convex-hull of the outline of a mask.
All other voxels are low.
Uses the Gift wrap algorithm taken from FIJI's PolygonRoi.java
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Mask
createFromMask
(Mask mask, Mask outline) Creates a convex hull from a mask and its outline.Methods inherited from class org.anchoranalysis.plugin.points.bean.convexhull.ConvexHullBase
createFromMask, isErodeAtBoundary, setErodeAtBoundary
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
-
ConvexHull2D
public ConvexHull2D()
-
-
Method Details
-
createFromMask
Description copied from class:ConvexHullBase
Creates a convex hull from a mask and its outline.- Specified by:
createFromMask
in classConvexHullBase
- Parameters:
mask
- the inputMask
outline
- the outlineMask
of the input mask- Returns:
- the convex hull
Mask
- Throws:
ProvisionFailedException
- if the convex hull creation fails
-