Class PointsFitterToMark
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,org.anchoranalysis.mpp.init.PointsInitialization>
org.anchoranalysis.mpp.bean.points.PointsBean<PointsFitterToMark>
org.anchoranalysis.plugin.points.bean.fitter.PointsFitterToMark
public class PointsFitterToMark extends org.anchoranalysis.mpp.bean.points.PointsBean<PointsFitterToMark>
A bean for fitting points to a mark using a specified points fitter.
-
Constructor Summary
Constructors Constructor Description PointsFitterToMark() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.image.core.dimensions.DimensionscreateDim()Creates and returns theDimensionsusing the specified provider.org.anchoranalysis.image.voxel.object.ObjectCollectioncreateObjects()Creates and returns theObjectCollectionusing the specified provider.voidfitPointsToMark(List<org.anchoranalysis.spatial.point.Point3f> pointsForFitter, org.anchoranalysis.mpp.mark.Mark mark, org.anchoranalysis.image.core.dimensions.Dimensions dim)Fits a list of points to a mark using the specified points fitter.org.anchoranalysis.image.bean.provider.DimensionsProvidergetDimensions()Provides theDimensionsfor the fitting operation.intgetMinNumPoints()The minimum number of points required for fitting.org.anchoranalysis.image.bean.provider.ObjectCollectionProvidergetObjects()Provides theObjectCollectionto be used in the fitting process.org.anchoranalysis.mpp.bean.points.fitter.PointsFittergetPointsFitter()ThePointsFitterused to fit points to a mark.voidsetDimensions(org.anchoranalysis.image.bean.provider.DimensionsProvider dimensions)Provides theDimensionsfor the fitting operation.voidsetMinNumPoints(int minNumPoints)The minimum number of points required for fitting.voidsetObjects(org.anchoranalysis.image.bean.provider.ObjectCollectionProvider objects)Provides theObjectCollectionto be used in the fitting process.voidsetPointsFitter(org.anchoranalysis.mpp.bean.points.fitter.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, onInitialization
-
Constructor Details
-
PointsFitterToMark
public PointsFitterToMark()
-
-
Method Details
-
fitPointsToMark
public void fitPointsToMark(List<org.anchoranalysis.spatial.point.Point3f> pointsForFitter, org.anchoranalysis.mpp.mark.Mark mark, org.anchoranalysis.image.core.dimensions.Dimensions dim) throws org.anchoranalysis.core.exception.OperationFailedExceptionFits 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:
org.anchoranalysis.core.exception.OperationFailedException- if the fitting operation fails
-
createObjects
public org.anchoranalysis.image.voxel.object.ObjectCollection createObjects() throws org.anchoranalysis.bean.xml.exception.ProvisionFailedExceptionCreates and returns theObjectCollectionusing the specified provider.- Returns:
- the created
ObjectCollection - Throws:
org.anchoranalysis.bean.xml.exception.ProvisionFailedException- if the object collection cannot be created
-
createDim
public org.anchoranalysis.image.core.dimensions.Dimensions createDim() throws org.anchoranalysis.bean.xml.exception.ProvisionFailedExceptionCreates and returns theDimensionsusing the specified provider.- Returns:
- the created
Dimensions - Throws:
org.anchoranalysis.bean.xml.exception.ProvisionFailedException- if the dimensions cannot be created
-
getPointsFitter
public org.anchoranalysis.mpp.bean.points.fitter.PointsFitter getPointsFitter()ThePointsFitterused to fit points to a mark. -
setPointsFitter
public void setPointsFitter(org.anchoranalysis.mpp.bean.points.fitter.PointsFitter pointsFitter)ThePointsFitterused to fit points to a mark. -
getDimensions
public org.anchoranalysis.image.bean.provider.DimensionsProvider getDimensions()Provides theDimensionsfor the fitting operation. -
setDimensions
public void setDimensions(org.anchoranalysis.image.bean.provider.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 org.anchoranalysis.image.bean.provider.ObjectCollectionProvider getObjects()Provides theObjectCollectionto be used in the fitting process. -
setObjects
public void setObjects(org.anchoranalysis.image.bean.provider.ObjectCollectionProvider objects)Provides theObjectCollectionto be used in the fitting process.
-