#include <itkParametersEstimator.h>
This class defines the interface for parameter estimators. Classes which inherit from it can be used by the RANSAC class to perform robust parameter estimation. The interface includes three methods: 1.Estimate() - Estimation of the parameters using the minimal amount of data (exact estimate). 2.LeastSquaresEstimate() - Estimation of the parameters using overdetermined data, so that the estimate minimizes a least squres error criteria. 3.Agree() - Does the given data agree with the model parameters.
Template parameters: T - data type (e.g. itk::Point). S - parameter's type (e.g. double).
Definition at line 50 of file itkParametersEstimator.h.
Inheritance diagram for itk::ParametersEstimator< T, SType >:
Collaboration diagram for itk::ParametersEstimator< T, SType >:Public Types | |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef SmartPointer< Self > | Pointer |
| typedef ParametersEstimator | Self |
| typedef Object | Superclass |
Public Types inherited from itk::Object | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = Object |
| using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = LightObject |
Public Member Functions | |
| virtual bool | Agree (std::vector< SType > ¶meters, T &data)=0 |
| virtual std::vector< double > | AgreeMultiple (std::vector< SType > ¶meters, std::vector< T > &data, unsigned int currentBest)=0 |
| virtual bool | CheckCorresspondenceDistance (std::vector< SType > ¶meters, std::vector< T * > &data)=0 |
| virtual bool | CheckCorresspondenceEdgeLength (std::vector< SType > ¶meters, std::vector< T * > &data, double edgeLength)=0 |
| virtual void | Estimate (std::vector< T * > &data, std::vector< SType > ¶meters)=0 |
| virtual void | Estimate (std::vector< T > &data, std::vector< SType > ¶meters)=0 |
| unsigned int | GetMinimalForEstimate () |
| virtual const char * | GetNameOfClass () const |
| virtual void | LeastSquaresEstimate (std::vector< T * > &data, std::vector< SType > ¶meters)=0 |
| virtual void | LeastSquaresEstimate (std::vector< T > &data, std::vector< SType > ¶meters)=0 |
| void | SetMinimalForEstimate (unsigned int minForEstimate) |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| LightObject::Pointer | CreateAnother () const override |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Protected Member Functions | |
| ParametersEstimator () | |
| ~ParametersEstimator () override=default | |
Protected Member Functions inherited from itk::Object | |
| Object () | |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| ~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
| virtual LightObject::Pointer | InternalClone () const |
| LightObject () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| virtual | ~LightObject () |
Protected Attributes | |
| unsigned int | minForEstimate |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
Private Member Functions | |
| void | operator= (const Self &) |
| ParametersEstimator (const Self &) | |
Additional Inherited Members | |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
| typedef SmartPointer<const Self> itk::ParametersEstimator< T, SType >::ConstPointer |
Definition at line 56 of file itkParametersEstimator.h.
| typedef SmartPointer<Self> itk::ParametersEstimator< T, SType >::Pointer |
Definition at line 55 of file itkParametersEstimator.h.
| typedef ParametersEstimator itk::ParametersEstimator< T, SType >::Self |
Definition at line 53 of file itkParametersEstimator.h.
| typedef Object itk::ParametersEstimator< T, SType >::Superclass |
Definition at line 54 of file itkParametersEstimator.h.
|
inlineprotected |
Definition at line 110 of file itkParametersEstimator.h.
|
overrideprotecteddefault |
|
private |
|
pure virtual |
This method tests if the given data agrees with the model defined by the parameters.
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Exact estimation of parameters.
| data | The data used for the estimate. |
| parameters | This vector is cleared and then filled with the estimated parameter values. |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
| unsigned int itk::ParametersEstimator< T, SType >::GetMinimalForEstimate | ( | ) |
|
virtual |
Reimplemented from itk::Object.
Reimplemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Least squares estimation of parameters.
| data | The data used for the estimate. |
| parameters | This vector is cleared and then filled with the computed parameters. |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
pure virtual |
Implemented in itk::LandmarkRegistrationEstimator< Dimension, TTransform >.
|
private |
| void itk::ParametersEstimator< T, SType >::SetMinimalForEstimate | ( | unsigned int | minForEstimate | ) |
Set the minimal number of data objects required for computation of an exact estimate.
| minForEstimate | Minimal number of data objects required for computation of an exact estimate. |
|
protected |
Definition at line 114 of file itkParametersEstimator.h.