DGtal
0.6.devel
|
#include <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 ((CForwardSegmentComputer< SegmentComputer >)) | |
BOOST_CONCEPT_ASSERT ((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.
|
inline |
Default constructor. Not valid.
Definition at line 45 of file MostCenteredMaximalSegmentEstimator.ih.
|
inline |
Constructor.
aSegmentComputer | |
aSCEstimator |
Definition at line 52 of file MostCenteredMaximalSegmentEstimator.ih.
|
inline |
|
private |
Copy constructor.
other | the object to clone. Forbidden by default. |
|
private |
|
private |
|
private |
|
inlineprivate |
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 |
Definition at line 90 of file MostCenteredMaximalSegmentEstimator.ih.
|
inlineprivate |
Definition at line 104 of file MostCenteredMaximalSegmentEstimator.ih.
References DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::eval().
|
inlineprivate |
Definition at line 119 of file MostCenteredMaximalSegmentEstimator.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::begin(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::end(), DGtal::getMiddleIterator(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::intersectNext(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::intersectPrevious().
|
inline |
Unique estimation
it | any valid iterator |
NB: the whole range [myBegin , myEnd)| is scanned in the worst case
Definition at line 228 of file MostCenteredMaximalSegmentEstimator.ih.
References DGtal::isNotEmpty(), and DGtal::mostCenteredMaximalSegment().
Referenced by DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::endEval().
|
inline |
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
Definition at line 152 of file MostCenteredMaximalSegmentEstimator.ih.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::begin(), DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::end(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::getMiddleIterator(), DGtal::SaturatedSegmentation< TSegmentComputer >::setMode(), and DGtal::SaturatedSegmentation< TSegmentComputer >::setSubRange().
|
inline |
Initialisation.
h | grid size (must be >0). |
itb,begin | iterator |
ite,end | iterator |
Definition at line 63 of file MostCenteredMaximalSegmentEstimator.ih.
References DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::init().
Referenced by DGtal::MostCenteredMaximalSegmentEstimator< SegmentComputer, SCEstimator >::init().
|
inline |
Checks the validity/consistency of the object.
Definition at line 79 of file MostCenteredMaximalSegmentEstimator.ih.
References DGtal::isNotEmpty().
|
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.