|
DGtal 1.4.0
|
#include <DGtal/geometry/curves/estimation/SegmentComputerEstimators.h>
Public Types | |
| typedef TSegmentComputer | SegmentComputer |
| typedef SegmentComputer::ConstIterator | ConstIterator |
| typedef ReturnType | Quantity |
Public Member Functions | |
| bool | isValid () const |
| PosIndepScaleIndepSCEstimator () | |
| void | init (const double, const ConstIterator &itb, const ConstIterator &ite) |
| void | attach (const SegmentComputer &aSC) |
| Quantity | eval (const ConstIterator &) const |
| template<typename OutputIterator > | |
| OutputIterator | eval (const ConstIterator &itb, const ConstIterator &ite, OutputIterator result) const |
Data Fields | |
| ConstIterator | myBegin |
| ConstIterator | myEnd |
| const SegmentComputer * | mySCPtr |
| Functor | myFunctor |
Description of class 'PosIndepScaleIndepSCEstimator'
Aim: estimates a geometric quantity from a segment computer. The estimation is neither position-dependent nor scale-dependent (e.g. tangent or normal estimation from 'straight' primitives).
| TSegmentComputer | a model of segment computer. |
The computation is delegated to a functor.
| Functor | a unary functor |
This class is a model of CSegmentComputerEstimator
Definition at line 85 of file SegmentComputerEstimators.h.
| typedef SegmentComputer::ConstIterator DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::ConstIterator |
Definition at line 92 of file SegmentComputerEstimators.h.
| typedef ReturnType DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::Quantity |
Definition at line 93 of file SegmentComputerEstimators.h.
| typedef TSegmentComputer DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::SegmentComputer |
Definition at line 91 of file SegmentComputerEstimators.h.
|
inline |
Default constructor
Definition at line 132 of file SegmentComputerEstimators.h.
|
inline |
Attach the estimator to aSC
| aSC | an instance of segment computer. |
Definition at line 150 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Unique estimation
Definition at line 159 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, and DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Estimation for a subrange [itb , ite )
| itb | subrange begin iterator (unused) |
| ite | subrange end iterator (unused) |
| result | output iterator on the estimated quantity |
Definition at line 175 of file SegmentComputerEstimators.h.
References DGtal::detail::isNotEmpty(), DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, and DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Initialisation. (h grid size unused)
| itb | begin iterator |
| ite | end iterator |
Definition at line 140 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin, and DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd.
|
inline |
Checks the validity/consistency of the object.
Definition at line 121 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
| ConstIterator DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin |
Begin iterator
Definition at line 100 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::init().
| ConstIterator DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd |
End iterator
Definition at line 104 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::init().
| Functor DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor |
Functor used for the estimation
Definition at line 112 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), and DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval().
| const SegmentComputer* DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr |
Aliasing pointer on a constant segment computer
Definition at line 108 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::attach(), DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), and DGtal::detail::PosIndepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::isValid().