Class ConvexHull2D

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
MaskProviderUnary
ConvexHullBase
ConvexHull2D
All Implemented Interfaces:
Provider<Mask>, 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

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

    • ConvexHull2D

      public ConvexHull2D()
  • Method Details

    • createFromMask

      protected Mask createFromMask(Mask mask, Mask outline) throws ProvisionFailedException
      Description copied from class: ConvexHullBase
      Creates a convex hull from a mask and its outline.
      Specified by:
      createFromMask in class ConvexHullBase
      Parameters:
      mask - the input Mask
      outline - the outline Mask of the input mask
      Returns:
      the convex hull Mask
      Throws:
      ProvisionFailedException - if the convex hull creation fails