DGtal 1.3.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 |
PosDepScaleIndepSCEstimator () | |
void | init (const double, const ConstIterator &itb, const ConstIterator &ite) |
void | attach (const SegmentComputer &aSC) |
Quantity | eval (const ConstIterator &it) 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 'PosDepScaleIndepSCEstimator'
Aim: estimates a geometric quantity from a segment computer. The estimation is not scale dependent but position dependent (e.g. tangent or normal estimation from high-order 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 389 of file SegmentComputerEstimators.h.
typedef SegmentComputer::ConstIterator DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::ConstIterator |
Definition at line 396 of file SegmentComputerEstimators.h.
typedef ReturnType DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::Quantity |
Definition at line 397 of file SegmentComputerEstimators.h.
typedef TSegmentComputer DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::SegmentComputer |
Definition at line 395 of file SegmentComputerEstimators.h.
|
inline |
Default constructor
Definition at line 436 of file SegmentComputerEstimators.h.
|
inline |
Attach the estimator to aSC
aSC | an instance of segment computer. |
Definition at line 453 of file SegmentComputerEstimators.h.
References DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Unique estimation
it | any iterator |
Definition at line 463 of file SegmentComputerEstimators.h.
References DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, and DGtal::detail::PosDepScaleIndepSCEstimator< 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 479 of file SegmentComputerEstimators.h.
References DGtal::detail::isNotEmpty(), DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor, and DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
|
inline |
Initialisation.
itb | begin iterator |
ite | end iterator |
Definition at line 443 of file SegmentComputerEstimators.h.
References DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin, and DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd.
|
inline |
Checks the validity/consistency of the object.
Definition at line 425 of file SegmentComputerEstimators.h.
References DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr.
ConstIterator DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin |
Begin iterator
Definition at line 404 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::init().
ConstIterator DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd |
End iterator
Definition at line 408 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::init().
Functor DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor |
Functor used for the estimation
Definition at line 416 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval().
const SegmentComputer* DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr |
Aliasing pointer on a constant segment computer
Definition at line 412 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::attach(), DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::eval(), and DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::isValid().