DGtal
0.6.devel
|
#include <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 392 of file SegmentComputerEstimators.h.
typedef SegmentComputer::ConstIterator DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::ConstIterator |
Definition at line 399 of file SegmentComputerEstimators.h.
typedef ReturnType DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::Quantity |
Definition at line 400 of file SegmentComputerEstimators.h.
typedef TSegmentComputer DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::SegmentComputer |
Definition at line 398 of file SegmentComputerEstimators.h.
|
inline |
|
inline |
Attach the estimator to aSC
aSC | an instance of segment computer. |
Definition at line 457 of file SegmentComputerEstimators.h.
|
inline |
Unique estimation
it | any iterator |
Definition at line 467 of file SegmentComputerEstimators.h.
|
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 483 of file SegmentComputerEstimators.h.
|
inline |
Initialisation.
h | grid size (unused) |
itb,begin | iterator |
ite,end | iterator |
Definition at line 447 of file SegmentComputerEstimators.h.
|
inline |
Checks the validity/consistency of the object.
Definition at line 428 of file SegmentComputerEstimators.h.
ConstIterator DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myBegin |
Begin iterator
Definition at line 407 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< DCAComputer, detail::TangentVectorFromDCA >::init().
ConstIterator DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myEnd |
End iterator
Definition at line 411 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< DCAComputer, detail::TangentVectorFromDCA >::init().
Functor DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::myFunctor |
Functor used for the estimation
Definition at line 419 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< DCAComputer, detail::TangentVectorFromDCA >::eval().
const SegmentComputer* DGtal::detail::PosDepScaleIndepSCEstimator< TSegmentComputer, Functor, ReturnType >::mySCPtr |
Aliasing pointer on a constant segment computer
Definition at line 415 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::PosDepScaleIndepSCEstimator< DCAComputer, detail::TangentVectorFromDCA >::attach(), DGtal::detail::PosDepScaleIndepSCEstimator< DCAComputer, detail::TangentVectorFromDCA >::eval(), and DGtal::detail::PosDepScaleIndepSCEstimator< DCAComputer, detail::TangentVectorFromDCA >::isValid().