Class ConvexHullBase
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
- All Implemented Interfaces:
org.anchoranalysis.bean.Provider<org.anchoranalysis.image.core.mask.Mask>,org.anchoranalysis.image.core.stack.ProviderAsStack
- Direct Known Subclasses:
ConvexHull2D,ConvexHull3D
public abstract class ConvexHullBase
extends org.anchoranalysis.image.bean.provider.MaskProviderUnary
Base class for convex hull implementations.
-
Constructor Summary
Constructors Constructor Description ConvexHullBase() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.core.mask.MaskcreateFromMask(org.anchoranalysis.image.core.mask.Mask mask)protected abstract 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.booleanisErodeAtBoundary()Whether to erode the mask at the boundary before finding the contour.voidsetErodeAtBoundary(boolean erodeAtBoundary)Whether to erode the mask at the boundary before finding the contour.Methods 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
-
ConvexHullBase
public ConvexHullBase()
-
-
Method Details
-
createFromMask
public org.anchoranalysis.image.core.mask.Mask createFromMask(org.anchoranalysis.image.core.mask.Mask mask) throws org.anchoranalysis.bean.xml.exception.ProvisionFailedException- Specified by:
createFromMaskin classorg.anchoranalysis.image.bean.provider.MaskProviderUnary- Throws:
org.anchoranalysis.bean.xml.exception.ProvisionFailedException
-
createFromMask
protected abstract 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.ProvisionFailedExceptionCreates a convex hull from a mask and its outline.- 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
-
isErodeAtBoundary
public boolean isErodeAtBoundary()Whether to erode the mask at the boundary before finding the contour. -
setErodeAtBoundary
public void setErodeAtBoundary(boolean erodeAtBoundary)Whether to erode the mask at the boundary before finding the contour.
-