Class PointsFitterToMark

Object
AnchorBean<PointsFitterToMark>
InitializableBean<PointsFitterToMark, PointsInitialization>
PointsBean<PointsFitterToMark>
PointsFitterToMark

public class PointsFitterToMark extends PointsBean<PointsFitterToMark>
A bean for fitting points to a mark using a specified points fitter.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Dimensions
    Creates and returns the Dimensions using the specified provider.
    ObjectCollection
    Creates and returns the ObjectCollection 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.
    DimensionsProvider
    Provides the Dimensions for the fitting operation.
    int
    The minimum number of points required for fitting.
    ObjectCollectionProvider
    Provides the ObjectCollection to be used in the fitting process.
    PointsFitter
    The PointsFitter used to fit points to a mark.
    void
    setDimensions(DimensionsProvider dimensions)
    Provides the Dimensions for the fitting operation.
    void
    setMinNumPoints(int minNumPoints)
    The minimum number of points required for fitting.
    void
    setObjects(ObjectCollectionProvider objects)
    Provides the ObjectCollection to be used in the fitting process.
    void
    setPointsFitter(PointsFitter pointsFitter)
    The PointsFitter 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 of Point3f to fit
      mark - the Mark to fit the points to
      dim - the Dimensions of the image
      Throws:
      OperationFailedException - if the fitting operation fails
    • createObjects

      public ObjectCollection createObjects() throws ProvisionFailedException
      Creates and returns the ObjectCollection using the specified provider.
      Returns:
      the created ObjectCollection
      Throws:
      ProvisionFailedException - if the object collection cannot be created
    • createDim

      public Dimensions createDim() throws ProvisionFailedException
      Creates and returns the Dimensions using the specified provider.
      Returns:
      the created Dimensions
      Throws:
      ProvisionFailedException - if the dimensions cannot be created
    • getPointsFitter

      public PointsFitter getPointsFitter()
      The PointsFitter used to fit points to a mark.
    • setPointsFitter

      public void setPointsFitter(PointsFitter pointsFitter)
      The PointsFitter used to fit points to a mark.
    • getDimensions

      public DimensionsProvider getDimensions()
      Provides the Dimensions for the fitting operation.
    • setDimensions

      public void setDimensions(DimensionsProvider dimensions)
      Provides the Dimensions 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

      public ObjectCollectionProvider getObjects()
      Provides the ObjectCollection to be used in the fitting process.
    • setObjects

      public void setObjects(ObjectCollectionProvider objects)
      Provides the ObjectCollection to be used in the fitting process.