Class DrawLineAlongConvexHull

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
DrawLineAlongConvexHull
All Implemented Interfaces:
Provider<ObjectCollection>

public class DrawLineAlongConvexHull extends ObjectCollectionProviderUnary
Draws a lines between successive points on the convex-hull of an object.

For each object: 1. extracts the convex hull of the outline (a set of points) 2. connects these points together by walking a line between them. This ensures it is a single connected component.

This only currently works in 2D on coplanar (XY) points.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected ObjectCollection
    createFromObjects(ObjectCollection objects)
     

    Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary

    get, getObjects, setObjects

    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

    • DrawLineAlongConvexHull

      public DrawLineAlongConvexHull()
  • Method Details

    • createFromObjects

      protected ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
      Specified by:
      createFromObjects in class ObjectCollectionProviderUnary
      Throws:
      ProvisionFailedException