Class DrawLineAlongConvexHull
- All Implemented Interfaces:
Provider<ObjectCollection>
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 ObjectCollection
createFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.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
-
Constructor Details
-
DrawLineAlongConvexHull
public DrawLineAlongConvexHull()
-
-
Method Details
-
createFromObjects
protected ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objects
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-