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 | |
PosIndepScaleDepSCEstimator () | |
PosIndepScaleDepSCEstimator (const PosIndepScaleDepSCEstimator &other) | |
PosIndepScaleDepSCEstimator & | operator= (const PosIndepScaleDepSCEstimator &other) |
~PosIndepScaleDepSCEstimator () | |
bool | isValid () const |
void | init (const double h, 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 | |
double | myH |
ConstIterator | myBegin |
ConstIterator | myEnd |
const SegmentComputer * | mySCPtr |
Functor | myFunctor |
Description of class 'PosIndepScaleDepSCEstimator'
Aim: estimates a geometric quantity from a segment computer. The estimation is not position-dependent, but is scale-dependent (e.g. curvature or radius estimation from 'circular' primitives).
TSegmentComputer | a model of segment computer. |
The computation is delegated to a functor.
Functor | a binary functor |
This class is a model of CSegmentComputerEstimator
Definition at line 217 of file SegmentComputerEstimators.h.
typedef SegmentComputer::ConstIterator DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::ConstIterator |
Definition at line 224 of file SegmentComputerEstimators.h.
typedef ReturnType DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::Quantity |
Definition at line 225 of file SegmentComputerEstimators.h.
typedef TSegmentComputer DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::SegmentComputer |
Definition at line 223 of file SegmentComputerEstimators.h.
|
inline |
Default constructor. NB: not valid.
Definition at line 257 of file SegmentComputerEstimators.h.
|
inline |
|
inline |
|
inline |
Attach the estimator to aSC
aSC | an instance of segment computer. |
Definition at line 323 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Estimation depending on myH
Definition at line 333 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::isValid(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myH, and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Estimation for a subrange [itb , ite )
itb | subrange begin iterator |
ite | subrange end iterator |
result | output iterator on the estimated quantity |
Definition at line 349 of file SegmentComputerEstimators.h.
References DGtal::detail::isNotEmpty(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::isValid(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myH, and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Initialisation.
h | grid size |
itb | begin iterator |
ite | end iterator |
Definition at line 311 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin, DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd, and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myH.
|
inline |
Checks the validity/consistency of the object.
Definition at line 295 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myH, and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
Referenced by DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval().
|
inline |
Assignement.
other | the object to copy. |
Definition at line 274 of file SegmentComputerEstimators.h.
References DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin, DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd, DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myH, and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
ConstIterator DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin |
Begin iterator
Definition at line 236 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::init(), and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::operator=().
ConstIterator DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd |
End iterator
Definition at line 240 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::init(), and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::operator=().
Functor DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor |
Functor used for the estimation
Definition at line 248 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::operator=().
double DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::myH |
Grid step
Definition at line 232 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::init(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::isValid(), and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::operator=().
const SegmentComputer* DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr |
Aliasing pointer on a constant segment computer
Definition at line 244 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::attach(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::isValid(), and DGtal::detail::PosIndepScaleDepSCEstimator< TSegmentComputer, Functor, ReturnType >::operator=().