Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::pixel< I > Struct Template Reference

Generic pixel class. More...

#include <pixel.hh>

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

Public Member Functions

void change_to (const typename I::psite &p)
 Change the pixel to the one at point p.
 
bool is_valid () const
 Test if this pixel is valid.
 
 pixel (I &image)
 Constructor.
 
 pixel (I &image, const typename I::psite &p)
 Constructor.
 

Detailed Description

template<typename I>
struct mln::pixel< I >

Generic pixel class.

The parameter is I the type of the image it belongs to.

Definition at line 50 of file core/pixel.hh.

Constructor & Destructor Documentation

template<typename I >
mln::pixel< I >::pixel ( I &  image)
inline

Constructor.

Definition at line 75 of file core/pixel.hh.

template<typename I >
mln::pixel< I >::pixel ( I &  image,
const typename I::psite &  p 
)
inline

Constructor.

Definition at line 82 of file core/pixel.hh.

References mln::pixel< I >::change_to().

Member Function Documentation

template<typename I >
void mln::pixel< I >::change_to ( const typename I::psite &  p)
inline

Change the pixel to the one at point p.

Definition at line 92 of file core/pixel.hh.

Referenced by mln::pixel< I >::pixel().

template<typename I >
bool mln::pixel< I >::is_valid ( ) const
inline

Test if this pixel is valid.

Definition at line 101 of file core/pixel.hh.