DGtal
0.6.devel
|
#include <SegmentComputerEstimators.h>
Public Types | |
typedef DSSComputer | SegmentComputer |
typedef DSSComputer::ConstIterator | ConstIterator |
typedef double | Quantity |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((CUnaryFunctor< Functor, SegmentComputer, Quantity >)) | |
CurvatureFromDSSBaseEstimator () | |
CurvatureFromDSSBaseEstimator (const CurvatureFromDSSBaseEstimator &other) | |
CurvatureFromDSSBaseEstimator & | operator= (const CurvatureFromDSSBaseEstimator &other) |
~CurvatureFromDSSBaseEstimator () | |
bool | isValid () const |
void | init (const double h, const ConstIterator &itb, const ConstIterator &ite) |
Quantity | eval (const ConstIterator &it) |
template<typename OutputIterator > | |
OutputIterator | eval (const ConstIterator &itb, const ConstIterator &ite, OutputIterator result) |
void | attach (const SegmentComputer &aSC) |
Data Fields | |
double | myH |
ConstIterator | myBegin |
ConstIterator | myEnd |
const SegmentComputer * | mySCPtr |
Functor | myFunctor |
Description of class 'CurvatureFromDSSBaseEstimator'
Aim: computes a curvature quantity from the length and/or the width of a DSS.
DSSComputer | a model of segment computer devoted to the DSS recognition. |
The computation is delegated to a functor.
Functor | a model of unary functor taking a DSS as input and returning a double |
This class is a model of CSegmentComputerEstimator
Definition at line 1309 of file SegmentComputerEstimators.h.
typedef DSSComputer::ConstIterator DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::ConstIterator |
Definition at line 1316 of file SegmentComputerEstimators.h.
typedef double DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::Quantity |
Definition at line 1317 of file SegmentComputerEstimators.h.
typedef DSSComputer DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::SegmentComputer |
Definition at line 1315 of file SegmentComputerEstimators.h.
|
inline |
|
inline |
|
inline |
|
inline |
Attach the estimator to aSC
aSC | an instance of segment computer. |
Definition at line 1525 of file SegmentComputerEstimators.h.
DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::BOOST_CONCEPT_ASSERT | ( | (CUnaryFunctor< Functor, SegmentComputer, Quantity >) | ) |
|
inline |
Unique estimation
it | any iterator |
Definition at line 1416 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval().
|
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 1502 of file SegmentComputerEstimators.h.
|
inline |
|
inline |
Checks the validity/consistency of the object.
Definition at line 1389 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval().
|
inline |
ConstIterator DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myBegin |
Begin iterator
Definition at line 1330 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::init(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::operator=().
ConstIterator DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myEnd |
End iterator
Definition at line 1334 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::init(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::operator=().
Functor DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myFunctor |
Functor used for the estimation
Definition at line 1342 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::operator=().
double DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myH |
Grid step
Definition at line 1326 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::init(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::isValid(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::operator=().
const SegmentComputer* DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::mySCPtr |
Aliasing pointer on a constant segment computer
Definition at line 1338 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::attach(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::isValid(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, detail::CurvatureFromDSSLength >::operator=().