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.Mask createFromMask​(org.anchoranalysis.image.core.mask.Mask mask)  
    protected abstract org.anchoranalysis.image.core.mask.Mask createFromMask​(org.anchoranalysis.image.core.mask.Mask mask, org.anchoranalysis.image.core.mask.Mask outline)
    Creates a convex hull from a mask and its outline.
    boolean isErodeAtBoundary()
    Whether to erode the mask at the boundary before finding the contour.
    void setErodeAtBoundary​(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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • 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:
      createFromMask in class org.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.ProvisionFailedException
      Creates a convex hull from a mask and its outline.
      Parameters:
      mask - the input Mask
      outline - the outline Mask of 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.