Generic pixel class. More...
#include <pixel.hh>
Public Types | |
typedef Object< void > | category |
typedef pixel< I > | exact_t |
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. | |
operator unsigned () const | |
pixel (I &image) | |
Constructor. | |
pixel (I &image, const typename I::psite &p) | |
Constructor. | |
Private Types | |
typedef I | image |
Image type. | |
typedef I::lvalue | lvalue |
Image lvalue type. | |
typedef I::rvalue | rvalue |
Image rvalue type. | |
typedef internal::pixel_impl_ < I, pixel< I > > | super |
typedef I::value | value |
Image value type. | |
Private Member Functions | |
value ** | address_ () const |
Address of the current iterator value/pixel. | |
I & | ima () const |
Give the pixel image. | |
lvalue | val () |
pixel iterator value. | |
rvalue | val () const |
Get the pixel iterator value. |
Generic pixel class.
The parameter is I
the type of the image it belongs to.
typedef Object<void> mln::Object< pixel< I > >::category [inherited] |
typedef pixel< I > mln::Object< pixel< I > >::exact_t [inherited] |
typedef I mln::internal::pixel_impl_< I, pixel< I > >::image [inherited] |
Image type.
typedef I ::lvalue mln::internal::pixel_impl_< I, pixel< I > >::lvalue [inherited] |
Image lvalue type.
typedef I ::rvalue mln::internal::pixel_impl_< I, pixel< I > >::rvalue [inherited] |
Image rvalue type.
typedef internal::pixel_impl_<I, pixel<I> > mln::pixel< I >::super [private] |
typedef I ::value mln::internal::pixel_impl_< I, pixel< I > >::value [inherited] |
Image value type.
mln::pixel< I >::pixel | ( | I & | image | ) | [inline] |
Constructor.
mln::pixel< I >::pixel | ( | I & | image, | |
const typename I::psite & | p | |||
) | [inline] |
Constructor.
References mln::pixel< I >::change_to().
value** mln::internal::pixel_impl_< I, pixel< I > >::address_ | ( | ) | const [inherited] |
Address of the current iterator value/pixel.
void mln::pixel< I >::change_to | ( | const typename I::psite & | p | ) | [inline] |
Change the pixel to the one at point p
.
Referenced by mln::pixel< I >::pixel().
I& mln::internal::pixel_impl_< I, pixel< I > >::ima | ( | ) | const [inherited] |
Give the pixel image.
bool mln::pixel< I >::is_valid | ( | ) | const [inline] |
Test if this pixel is valid.
mln::Generalized_Pixel< pixel< I > >::operator unsigned | ( | ) | const [inline, inherited] |
lvalue mln::internal::pixel_impl_< I, pixel< I > >::val | ( | ) | [inherited] |
pixel iterator value.
Referenced by mln::io::dump::internal::load_data(), and mln::io::dump::internal::save_data().
rvalue mln::internal::pixel_impl_< I, pixel< I > >::val | ( | ) | const [inherited] |
Get the pixel iterator value.