Class PointsFitterToMark
Object
AnchorBean<PointsFitterToMark>
InitializableBean<PointsFitterToMark, PointsInitialization>
PointsBean<PointsFitterToMark>
PointsFitterToMark
A bean for fitting points to a mark using a specified points fitter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDimensionsCreates and returns theDimensionsusing the specified provider.ObjectCollectionCreates and returns theObjectCollectionusing the specified provider.voidfitPointsToMark(List<Point3f> pointsForFitter, Mark mark, Dimensions dim) Fits a list of points to a mark using the specified points fitter.DimensionsProviderProvides theDimensionsfor the fitting operation.intThe minimum number of points required for fitting.ObjectCollectionProviderProvides theObjectCollectionto be used in the fitting process.PointsFitterThePointsFitterused to fit points to a mark.voidsetDimensions(DimensionsProvider dimensions) Provides theDimensionsfor the fitting operation.voidsetMinNumPoints(int minNumPoints) The minimum number of points required for fitting.voidsetObjects(ObjectCollectionProvider objects) Provides theObjectCollectionto be used in the fitting process.voidsetPointsFitter(PointsFitter pointsFitter) ThePointsFitterused to fit points to a mark.Methods 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
-
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 ofPoint3fto fitmark- theMarkto fit the points todim- theDimensionsof the image- Throws:
OperationFailedException- if the fitting operation fails
-
createObjects
public ObjectCollection createObjects() throws ProvisionFailedExceptionCreates and returns theObjectCollectionusing the specified provider.- Returns:
- the created
ObjectCollection - Throws:
ProvisionFailedException- if the object collection cannot be created
-
createDim
public Dimensions createDim() throws ProvisionFailedExceptionCreates and returns theDimensionsusing the specified provider.- Returns:
- the created
Dimensions - Throws:
ProvisionFailedException- if the dimensions cannot be created
-
getPointsFitter
public PointsFitter getPointsFitter()ThePointsFitterused to fit points to a mark. -
setPointsFitter
public void setPointsFitter(PointsFitter pointsFitter) ThePointsFitterused to fit points to a mark. -
getDimensions
public DimensionsProvider getDimensions()Provides theDimensionsfor the fitting operation. -
setDimensions
public void setDimensions(DimensionsProvider dimensions) Provides theDimensionsfor 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
public ObjectCollectionProvider getObjects()Provides theObjectCollectionto be used in the fitting process. -
setObjects
public void setObjects(ObjectCollectionProvider objects) Provides theObjectCollectionto be used in the fitting process.
-