DGtal 1.3.0
|
#include <DGtal/geometry/curves/estimation/SegmentComputerEstimators.h>
Public Types | |
typedef DSSComputer | SegmentComputer |
typedef DSSComputer::ConstIterator | ConstIterator |
typedef double | Quantity |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::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 &) |
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 1300 of file SegmentComputerEstimators.h.
typedef DSSComputer::ConstIterator DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::ConstIterator |
Definition at line 1307 of file SegmentComputerEstimators.h.
typedef double DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::Quantity |
Definition at line 1308 of file SegmentComputerEstimators.h.
typedef DSSComputer DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::SegmentComputer |
Definition at line 1306 of file SegmentComputerEstimators.h.
|
inline |
Default constructor. NB: not valid.
Definition at line 1342 of file SegmentComputerEstimators.h.
|
inline |
|
inline |
|
inline |
Attach the estimator to aSC
aSC | an instance of segment computer. |
Definition at line 1512 of file SegmentComputerEstimators.h.
References DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::mySCPtr.
DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< Functor, SegmentComputer, Quantity >) | ) |
|
inline |
Unique estimation
Definition at line 1406 of file SegmentComputerEstimators.h.
References DGtal::detail::isNotEmpty(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::isValid(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myBegin, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myEnd, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myFunctor, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myH, and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::mySCPtr.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::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 1489 of file SegmentComputerEstimators.h.
References DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval(), DGtal::detail::isNotEmpty(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::isValid().
|
inline |
Initialisation.
h | grid size |
itb | begin iterator |
ite | end iterator |
Definition at line 1394 of file SegmentComputerEstimators.h.
References DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myBegin, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myEnd, and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myH.
|
inline |
Checks the validity/consistency of the object.
Definition at line 1380 of file SegmentComputerEstimators.h.
References DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myH, and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::mySCPtr.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval().
|
inline |
Assignement.
other | the object to copy. |
Definition at line 1359 of file SegmentComputerEstimators.h.
References DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myBegin, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myEnd, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myFunctor, DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myH, and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::mySCPtr.
ConstIterator DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myBegin |
Begin iterator
Definition at line 1321 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::init(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::operator=().
ConstIterator DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myEnd |
End iterator
Definition at line 1325 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::init(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::operator=().
Functor DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myFunctor |
Functor used for the estimation
Definition at line 1333 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::operator=().
double DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::myH |
Grid step
Definition at line 1317 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::init(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::isValid(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::operator=().
const SegmentComputer* DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::mySCPtr |
Aliasing pointer on a constant segment computer
Definition at line 1329 of file SegmentComputerEstimators.h.
Referenced by DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::attach(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::eval(), DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::isValid(), and DGtal::detail::CurvatureFromDSSBaseEstimator< DSSComputer, Functor >::operator=().