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 ObjectCollectioncreateFromObjects(ObjectCollection objects) Creates aObjectCollectiongiven the entity provided by the delegate.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 Description copied from class:ObjectCollectionProviderUnaryCreates aObjectCollectiongiven the entity provided by the delegate.- Specified by:
createFromObjectsin classObjectCollectionProviderUnary- Parameters:
objects- the entity provided by the delegate.- Returns:
- the created
ObjectCollectionthat is returned by the provider. - Throws:
ProvisionFailedException- if the provider cannot complete successfully.
-