A generic backward iterator on the pixels of a dpoint-based window or neighborhood. More...
#include <dpoints_pixter.hh>
Public Member Functions | |
const I::value & | center_val () const |
The value around which this iterator moves. | |
template<typename Dps , typename Pref > | |
dpoints_bkd_pixter (const Generalized_Pixel< Pref > &pxl_ref, const Dps &dps) | |
Constructor (using a generalized pixel). | |
template<typename Dps , typename Pref > | |
dpoints_bkd_pixter (I &image, const Dps &dps, const Pref &p_ref) | |
Constructor (using an image). | |
void | next () |
Go to the next element. | |
void | start () |
Manipulation. | |
void | invalidate () |
Invalidate the iterator. | |
bool | is_valid () const |
Test the iterator validity. | |
void | update () |
Force this iterator to update its location to take into account that its center point may have moved. |
A generic backward iterator on the pixels of a dpoint-based window or neighborhood.
Parameter I
is the image type.
Definition at line 140 of file dpoints_pixter.hh.
mln::dpoints_bkd_pixter< I >::dpoints_bkd_pixter | ( | I & | image, | |
const Dps & | dps, | |||
const Pref & | p_ref | |||
) | [inline] |
Constructor (using an image).
[in] | image | The image to iterate over. |
[in] | dps | An object (neighborhood or window) that can provide a set of delta-points. |
[in] | p_ref | Center (resp. reference) point of the neighborhood (resp. window). |
Definition at line 338 of file dpoints_pixter.hh.
mln::dpoints_bkd_pixter< I >::dpoints_bkd_pixter | ( | const Generalized_Pixel< Pref > & | pxl_ref, | |
const Dps & | dps | |||
) | [inline] |
Constructor (using a generalized pixel).
[in] | pxl_ref | Center (generalized) pixel to iterate around. |
[in] | dps | An object (neighborhood or window) that can provide a set of delta-points. |
Definition at line 352 of file dpoints_pixter.hh.
const I::value & mln::dpoints_bkd_pixter< I >::center_val | ( | ) | const [inline] |
The value around which this iterator moves.
Definition at line 367 of file dpoints_pixter.hh.
void mln::dpoints_bkd_pixter< I >::invalidate | ( | ) | [inline] |
Invalidate the iterator.
Definition at line 436 of file dpoints_pixter.hh.
bool mln::dpoints_bkd_pixter< I >::is_valid | ( | ) | const [inline] |
Test the iterator validity.
Definition at line 428 of file dpoints_pixter.hh.
Referenced by mln::dpoints_bkd_pixter< I >::update().
void mln::Iterator< dpoints_bkd_pixter< I > >::next | ( | ) | [inherited] |
Go to the next element.
void mln::dpoints_bkd_pixter< I >::start | ( | ) | [inline] |
Manipulation.
Start an iteration.
Definition at line 409 of file dpoints_pixter.hh.
References mln::dpoints_bkd_pixter< I >::update().
void mln::dpoints_bkd_pixter< I >::update | ( | ) | [inline] |
Force this iterator to update its location to take into account that its center point may have moved.
Definition at line 395 of file dpoints_pixter.hh.
References mln::dpoints_bkd_pixter< I >::is_valid().
Referenced by mln::dpoints_bkd_pixter< I >::start().