DGtal
0.9.4.1
|
#include <DGtal/geometry/curves/estimation/MostCenteredMaximalSegmentEstimator.h>
Public Types | |
typedef SegmentComputer::ConstIterator | ConstIterator |
typedef SCEstimator::Quantity | Quantity |
typedef SaturatedSegmentation< SegmentComputer > | Segmentation |
typedef Segmentation::SegmentComputerIterator | SegmentIterator |
Public Member Functions | |
MostCenteredMaximalSegmentEstimator () | |
MostCenteredMaximalSegmentEstimator (const SegmentComputer &aSegmentComputer, const SCEstimator &aSCEstimator) | |
~MostCenteredMaximalSegmentEstimator () | |
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) |
bool | isValid () const |
Private Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CForwardSegmentComputer< SegmentComputer >)) | |
BOOST_CONCEPT_ASSERT ((concepts::CSegmentComputerEstimator< SCEstimator >)) | |
BOOST_STATIC_ASSERT ((boost::is_same< SegmentComputer, typename SCEstimator::SegmentComputer >::value)) | |
template<typename OutputIterator > | |
OutputIterator | endEval (const ConstIterator &itb, const ConstIterator &ite, ConstIterator &itCurrent, SegmentIterator &first, SegmentIterator &last, OutputIterator result) |
template<typename OutputIterator > | |
OutputIterator | endEval (const ConstIterator &, const ConstIterator &ite, ConstIterator &itCurrent, SegmentIterator &, SegmentIterator &last, OutputIterator result, IteratorType) |
template<typename OutputIterator > | |
OutputIterator | endEval (const ConstIterator &itb, const ConstIterator &ite, ConstIterator &itCurrent, SegmentIterator &first, SegmentIterator &last, OutputIterator result, CirculatorType) |
MostCenteredMaximalSegmentEstimator (const MostCenteredMaximalSegmentEstimator &other) | |
MostCenteredMaximalSegmentEstimator & | operator= (const MostCenteredMaximalSegmentEstimator &other) |
Private Attributes | |
double | myH |
ConstIterator | myBegin |
ConstIterator | myEnd |
SegmentComputer | mySC |
SCEstimator | mySCEstimator |
Aim: A model of CLocalCurveGeometricEstimator that assigns to each element of a (sub)range a quantity estimated from the most centered maximal segment passing through this element.
Description of template class 'MostCenteredMaximalSegmentEstimator'
Here is a basic example of curvature estimation:
SegmentComputer | at least a model of CForwardSegmentComputer |
SCEstimator | a model of CSegmentComputerEstimator |
Definition at line 83 of file MostCenteredMaximalSegmentEstimator.h.
typedef SegmentComputer::ConstIterator DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::ConstIterator |
Definition at line 94 of file MostCenteredMaximalSegmentEstimator.h.
typedef SCEstimator::Quantity DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::Quantity |
Definition at line 95 of file MostCenteredMaximalSegmentEstimator.h.
typedef SaturatedSegmentation<SegmentComputer> DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::Segmentation |
Definition at line 97 of file MostCenteredMaximalSegmentEstimator.h.
typedef Segmentation::SegmentComputerIterator DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::SegmentIterator |
Definition at line 98 of file MostCenteredMaximalSegmentEstimator.h.
DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::MostCenteredMaximalSegmentEstimator | ( | ) |
Default constructor. Not valid.
DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::MostCenteredMaximalSegmentEstimator | ( | const SegmentComputer & | aSegmentComputer, |
const SCEstimator & | aSCEstimator | ||
) |
Constructor.
aSegmentComputer | a segment computer |
aSCEstimator | an estimator |
|
inline |
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
|
private |
|
private |
|
private |
|
private |
Specialization of the end of the algorithm
itb | subrange begin iterator |
ite | subrange end iterator |
itCurrent | current iterator |
first | iterator on the first maximal segment |
last | iterator on the last maximal segment |
result | output iterator on the estimated quantity |
|
private |
|
private |
Quantity DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval | ( | const ConstIterator & | it | ) |
Unique estimation
it | any valid iterator |
NB: the whole range [myBegin , myEnd)| is scanned in the worst case
OutputIterator DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval | ( | const ConstIterator & | itb, |
const ConstIterator & | ite, | ||
OutputIterator | result | ||
) |
Estimation for a subrange [itb , ite )
itb | subrange begin iterator |
ite | subrange end iterator |
result | output iterator on the estimated quantity |
NB: the whole range [myBegin , myEnd)| is scanned in the worst case
void DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::init | ( | const double | h, |
const ConstIterator & | itb, | ||
const ConstIterator & | ite | ||
) |
Initialisation.
h | grid size (must be >0). |
itb | begin iterator |
ite | end iterator |
bool DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
|
private |
Assignment.
other | the object to copy. |
|
private |
begin and end iterators
Definition at line 176 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
Definition at line 176 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
grid step
Definition at line 173 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
segmentComputer used to segment
Definition at line 179 of file MostCenteredMaximalSegmentEstimator.h.
|
private |
object estimating the quantity from segmentComputer
Definition at line 182 of file MostCenteredMaximalSegmentEstimator.h.