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.Dimensions createDim()
    Creates and returns the Dimensions using the specified provider.
    org.anchoranalysis.image.voxel.object.ObjectCollection createObjects()
    Creates and returns the ObjectCollection using the specified provider.
    void fitPointsToMark​(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.DimensionsProvider getDimensions()
    Provides the Dimensions for the fitting operation.
    int getMinNumPoints()
    The minimum number of points required for fitting.
    org.anchoranalysis.image.bean.provider.ObjectCollectionProvider getObjects()
    Provides the ObjectCollection to be used in the fitting process.
    org.anchoranalysis.mpp.bean.points.fitter.PointsFitter getPointsFitter()
    The PointsFitter used to fit points to a mark.
    void setDimensions​(org.anchoranalysis.image.bean.provider.DimensionsProvider dimensions)
    Provides the Dimensions for the fitting operation.
    void setMinNumPoints​(int minNumPoints)
    The minimum number of points required for fitting.
    void setObjects​(org.anchoranalysis.image.bean.provider.ObjectCollectionProvider objects)
    Provides the ObjectCollection to be used in the fitting process.
    void setPointsFitter​(org.anchoranalysis.mpp.bean.points.fitter.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

  • 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.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:
      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.ProvisionFailedException
      Creates and returns the ObjectCollection using 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.ProvisionFailedException
      Creates and returns the Dimensions using 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()
      The PointsFitter used to fit points to a mark.
    • setPointsFitter

      public void setPointsFitter​(org.anchoranalysis.mpp.bean.points.fitter.PointsFitter pointsFitter)
      The PointsFitter used to fit points to a mark.
    • getDimensions

      public org.anchoranalysis.image.bean.provider.DimensionsProvider getDimensions()
      Provides the Dimensions for the fitting operation.
    • setDimensions

      public void setDimensions​(org.anchoranalysis.image.bean.provider.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 org.anchoranalysis.image.bean.provider.ObjectCollectionProvider getObjects()
      Provides the ObjectCollection to be used in the fitting process.
    • setObjects

      public void setObjects​(org.anchoranalysis.image.bean.provider.ObjectCollectionProvider objects)
      Provides the ObjectCollection to be used in the fitting process.