|
DGtal 1.4.2
|
Aim: Functor to compare two local geometric estimators. More...
#include <DGtal/geometry/curves/estimation/CompareLocalEstimators.h>
Public Types | |
| typedef TFirstEsimator | FirstEstimator |
| typedef TSecondEstimator | SecondEstimator |
| typedef FirstEstimator::ConstIterator | ConstIterator |
| typedef FirstEstimator::Quantity | Quantity |
| typedef Statistic< Quantity > | OutputStatistic |
| Output statistic type. | |
| typedef Statistic< double > | OutputVectorStatistic |
Static Public Member Functions | |
| static Quantity | compare (FirstEstimator &aFirstEstimator, SecondEstimator &aSecondEstimator, const ConstIterator &it, const double h=1.) |
| static OutputStatistic | compare (FirstEstimator &aFirstEstimator, SecondEstimator &aSecondEstimator, const ConstIterator &itb, const ConstIterator &ite, const double h=1., const bool storeSamples=false) |
| static double | compareVectors (FirstEstimator &aFirstEstimator, SecondEstimator &aSecondEstimator, const ConstIterator &it, const double h=1.) |
| static OutputVectorStatistic | compareVectors (FirstEstimator &aFirstEstimator, SecondEstimator &aSecondEstimator, const ConstIterator &itb, const ConstIterator &ite, const double h, const bool storeSamples=false) |
Private Member Functions | |
| CompareLocalEstimators (const CompareLocalEstimators &other) | |
| CompareLocalEstimators & | operator= (const CompareLocalEstimators &other) |
Aim: Functor to compare two local geometric estimators.
Description of template struct 'CompareLocalEstimators'
| TFirstEsimator | type of the first estimator. |
| TSecondEstimator | type of the second estimator. |
Definition at line 66 of file CompareLocalEstimators.h.
| FirstEstimator::ConstIterator DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::ConstIterator |
Definition at line 75 of file CompareLocalEstimators.h.
| TFirstEsimator DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::FirstEstimator |
Definition at line 72 of file CompareLocalEstimators.h.
| Statistic<Quantity> DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::OutputStatistic |
Output statistic type.
Definition at line 79 of file CompareLocalEstimators.h.
| Statistic<double> DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::OutputVectorStatistic |
Definition at line 80 of file CompareLocalEstimators.h.
| FirstEstimator::Quantity DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::Quantity |
Definition at line 76 of file CompareLocalEstimators.h.
| TSecondEstimator DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::SecondEstimator |
Definition at line 73 of file CompareLocalEstimators.h.
|
private |
Copy constructor.
| other | the object to clone. Forbidden by default. |
|
inlinestatic |
Return the error (difference) between the two estimators at a given point.
| aFirstEstimator | the first estimator. |
| aSecondEstimator | the second estimator. |
| it | the point to evaluate the difference. |
| h | grid size (must be > 0). |
Definition at line 102 of file CompareLocalEstimators.h.
Referenced by DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::compare().
|
inlinestatic |
Return a statistic on the error (difference) between the two estimators for points ranging from itb to ite.
| aFirstEstimator | the first estimator. |
| aSecondEstimator | the second estimator. |
| itb | starting point of the comparison. |
| ite | ending point of the comparison. |
| h | grid size (must be > 0). |
| storeSamples | if true, the instance of Statistic will store all the values. |
Definition at line 132 of file CompareLocalEstimators.h.
References DGtal::Statistic< TQuantity >::addValue(), DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::compare(), and DGtal::Statistic< TQuantity >::terminate().
|
inlinestatic |
Return the angular error between the two estimations (if Quantity values are vectors) at a given point.
| aFirstEstimator | the first estimator. |
| aSecondEstimator | the second estimator. |
| it | the point to evaluate the difference. |
| h | grid size (must be > 0). |
Definition at line 166 of file CompareLocalEstimators.h.
Referenced by DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::compareVectors().
|
inlinestatic |
Return a statistic on the error (angular error) between the two estimators for points ranging from itb to ite.
| aFirstEstimator | the first estimator. |
| aSecondEstimator | the second estimator. |
| itb | starting point of the comparison. |
| ite | ending point of the comparison. |
| h | grid size (must be >0). |
| storeSamples | if true, the instance of Statistic will store all the values. |
Definition at line 202 of file CompareLocalEstimators.h.
References DGtal::Statistic< TQuantity >::addValue(), DGtal::CompareLocalEstimators< TFirstEsimator, TSecondEstimator >::compareVectors(), and DGtal::Statistic< TQuantity >::terminate().
|
private |
Assignment.
| other | the object to copy. |