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.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.

    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

  • 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.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:
      org.anchoranalysis.bean.xml.exception.ProvisionFailedException - if the convex hull creation fails