Class SplitContourAtSaddlePoints
- All Implemented Interfaces:
Provider<ObjectCollection>
Splits a 2D contour represented by an object-mask into several contours, splitting at "turn"
points.
Specifically, smoothing spline interpolation is performed along the contour and splits occur at saddle points.
Each contour is represented by an input object.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.int
If a contour has less than this number of points, we don't split it, and return it as-isint
double
void
setMinNumberPoints
(int minNumberPoints) If a contour has less than this number of points, we don't split it, and return it as-isvoid
setNumberLoopPoints
(int numberLoopPoints) void
setSmoothingFactor
(double smoothingFactor) 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
-
SplitContourAtSaddlePoints
public SplitContourAtSaddlePoints()
-
-
Method Details
-
createFromObjects
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.
-
getSmoothingFactor
public double getSmoothingFactor() -
setSmoothingFactor
public void setSmoothingFactor(double smoothingFactor) -
getNumberLoopPoints
public int getNumberLoopPoints() -
setNumberLoopPoints
public void setNumberLoopPoints(int numberLoopPoints) -
getMinNumberPoints
public int getMinNumberPoints()If a contour has less than this number of points, we don't split it, and return it as-is -
setMinNumberPoints
public void setMinNumberPoints(int minNumberPoints) If a contour has less than this number of points, we don't split it, and return it as-is
-