Public Member Functions

mln::dpoints_bkd_pixter< I > Class Template Reference

A generic backward iterator on the pixels of a dpoint-based window or neighborhood. More...

#include <dpoints_pixter.hh>

Inheritance diagram for mln::dpoints_bkd_pixter< I >:
Inheritance graph

List of all members.

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.

Detailed Description

template<typename I>
class mln::dpoints_bkd_pixter< I >

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.


Constructor & Destructor Documentation

template<typename I >
template<typename Dps , typename Pref >
mln::dpoints_bkd_pixter< I >::dpoints_bkd_pixter ( I &  image,
const Dps &  dps,
const Pref &  p_ref 
) [inline]

Constructor (using an image).

Parameters:
[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.

template<typename I >
template<typename Dps , typename Pref >
mln::dpoints_bkd_pixter< I >::dpoints_bkd_pixter ( const Generalized_Pixel< Pref > &  pxl_ref,
const Dps &  dps 
) [inline]

Constructor (using a generalized pixel).

Parameters:
[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.


Member Function Documentation

template<typename I >
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.

template<typename I >
void mln::dpoints_bkd_pixter< I >::invalidate (  )  [inline]

Invalidate the iterator.

Definition at line 436 of file dpoints_pixter.hh.

template<typename I >
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.

Warning:
This is a final method; iterator classes should not re-defined this method. The actual "next" operation has to be defined through the next_ method.
Precondition:
The iterator is valid.
template<typename I >
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().

template<typename I >
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().