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 -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectCollectioncreateFromObjects(ObjectCollection objects) Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjectsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DrawLineAlongConvexHull
public DrawLineAlongConvexHull()
-
-
Method Details
-
createFromObjects
protected ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException - Specified by:
createFromObjectsin classObjectCollectionProviderUnary- Throws:
ProvisionFailedException
-