Class ConvexHull2D
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,org.anchoranalysis.image.bean.nonbean.init.ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.provider.BeanProviderAsStackBase<org.anchoranalysis.image.bean.provider.MaskProvider,org.anchoranalysis.image.core.mask.Mask>
org.anchoranalysis.image.bean.provider.MaskProvider
org.anchoranalysis.image.bean.provider.MaskProviderUnary
org.anchoranalysis.plugin.points.bean.convexhull.ConvexHullBase
org.anchoranalysis.plugin.points.bean.convexhull.ConvexHull2D
- All Implemented Interfaces:
org.anchoranalysis.bean.Provider<org.anchoranalysis.image.core.mask.Mask>,org.anchoranalysis.image.core.stack.ProviderAsStack
public class ConvexHull2D extends ConvexHullBase
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 Constructor Description ConvexHull2D() -
Method Summary
Modifier and Type Method Description protected org.anchoranalysis.image.core.mask.MaskcreateFromMask(org.anchoranalysis.image.core.mask.Mask mask, org.anchoranalysis.image.core.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.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
-
Constructor Details
-
ConvexHull2D
public ConvexHull2D()
-
-
Method Details
-
createFromMask
protected org.anchoranalysis.image.core.mask.Mask createFromMask(org.anchoranalysis.image.core.mask.Mask mask, org.anchoranalysis.image.core.mask.Mask outline) throws org.anchoranalysis.bean.xml.exception.ProvisionFailedExceptionDescription 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:
org.anchoranalysis.bean.xml.exception.ProvisionFailedException- if the convex hull creation fails
-