Class PointsFitterToMark
A bean for fitting points to a mark using a specified points fitter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns theDimensions
using the specified provider.Creates and returns theObjectCollection
using the specified provider.void
fitPointsToMark
(List<Point3f> pointsForFitter, Mark mark, Dimensions dim) Fits a list of points to a mark using the specified points fitter.Provides theDimensions
for the fitting operation.int
The minimum number of points required for fitting.Provides theObjectCollection
to be used in the fitting process.ThePointsFitter
used to fit points to a mark.void
setDimensions
(DimensionsProvider dimensions) Provides theDimensions
for the fitting operation.void
setMinNumPoints
(int minNumPoints) The minimum number of points required for fitting.void
setObjects
(ObjectCollectionProvider objects) Provides theObjectCollection
to be used in the fitting process.void
setPointsFitter
(PointsFitter pointsFitter) ThePointsFitter
used to fit points to a mark.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
-
PointsFitterToMark
public PointsFitterToMark()
-
-
Method Details
-
fitPointsToMark
public void fitPointsToMark(List<Point3f> pointsForFitter, Mark mark, Dimensions dim) throws OperationFailedException Fits a list of points to a mark using the specified points fitter.- Parameters:
pointsForFitter
- the list ofPoint3f
to fitmark
- theMark
to fit the points todim
- theDimensions
of the image- Throws:
OperationFailedException
- if the fitting operation fails
-
createObjects
Creates and returns theObjectCollection
using the specified provider.- Returns:
- the created
ObjectCollection
- Throws:
ProvisionFailedException
- if the object collection cannot be created
-
createDim
Creates and returns theDimensions
using the specified provider.- Returns:
- the created
Dimensions
- Throws:
ProvisionFailedException
- if the dimensions cannot be created
-
getPointsFitter
ThePointsFitter
used to fit points to a mark. -
setPointsFitter
ThePointsFitter
used to fit points to a mark. -
getDimensions
Provides theDimensions
for the fitting operation. -
setDimensions
Provides theDimensions
for the fitting operation. -
getMinNumPoints
public int getMinNumPoints()The minimum number of points required for fitting. Objects with fewer points are ignored. -
setMinNumPoints
public void setMinNumPoints(int minNumPoints) The minimum number of points required for fitting. Objects with fewer points are ignored. -
getObjects
Provides theObjectCollection
to be used in the fitting process. -
setObjects
Provides theObjectCollection
to be used in the fitting process.
-