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 MaskcreateFromMask(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, setErodeAtBoundaryMethods 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
-
ConvexHull2D
public ConvexHull2D()
-
-
Method Details
-
createFromMask
Description copied from class:ConvexHullBaseCreates a convex hull from a mask and its outline.- Specified by:
createFromMaskin classConvexHullBase- Parameters:
mask- the inputMaskoutline- the outlineMaskof the input mask- Returns:
- the convex hull
Mask - Throws:
ProvisionFailedException- if the convex hull creation fails
-