#include <image.h>
Provides basic image access such as accessing a particular pixel co-ordinate.
T | The pixel type for this image. Typically either CVD::byte or CVD::Rgb<CVD::byte> > are used, but images could be constructed of any available type. |
Loading and saving, format conversion and some copying functionality is provided by external functions rather than as part of this class. See the Image loading and saving, and format conversion module for documentation of these functions.
Definition at line 497 of file image.h.
Public Types | |
typedef T * | iterator |
typedef const T * | const_iterator |
Public Member Functions | |
BasicImage (T *data, const ImageRef &size) | |
BasicImage (const BasicImage ©of) | |
void | operator= (const BasicImage ©of) |
~BasicImage () | |
const_iterator | begin () const |
iterator | begin () |
const_iterator | end () const |
iterator | end () |
Protected Member Functions | |
BasicImage () |
typedef T* CVD::BasicImage< T >::iterator |
A random-access iterator to read or write pixel values from the image.
This can be incremented, decremented and dereferenced. Incrementing this iterator steps through pixels in the usual scanline order.
Reimplemented from CVD::SubImage< T >.
typedef const T* CVD::BasicImage< T >::const_iterator |
A random-access iterator to read pixel values from the image.
This can be incremented, decremented and dereferenced. Incrementing this iterator steps through pixels in the usual scanline order.
Reimplemented from CVD::SubImage< T >.
CVD::BasicImage< T >::BasicImage | ( | T * | data, | |
const ImageRef & | size | |||
) | [inline] |
CVD::BasicImage< T >::BasicImage | ( | const BasicImage< T > & | copyof | ) | [inline] |
CVD::BasicImage< T >::~BasicImage | ( | ) | [inline] |
The image data is not destroyed when a BasicImage is destroyed.
CVD::BasicImage< T >::BasicImage | ( | ) | [inline, protected] |
const_iterator CVD::BasicImage< T >::begin | ( | ) | const [inline] |
Returns a const iterator referencing the first (top-left) pixel in the image.
Reimplemented from CVD::SubImage< T >.
Definition at line 537 of file image.h.
Referenced by CVD::Image< CVD::Rgb< unsigned char > >::copy_from(), CVD::Gradient< S, T, 1, 2 >::gradient(), and CVD::threshold().
iterator CVD::BasicImage< T >::begin | ( | ) | [inline] |
Returns an iterator referencing the first (top-left) pixel in the image.
Reimplemented from CVD::SubImage< T >.
const_iterator CVD::BasicImage< T >::end | ( | ) | const [inline] |
Returns a const iterator referencing the pixel immediately after the last (bottom-right) pixel in the image.
Reimplemented from CVD::SubImage< T >.
Definition at line 544 of file image.h.
Referenced by CVD::Image< CVD::Rgb< unsigned char > >::copy_from(), CVD::Gradient< S, T, 1, 2 >::gradient(), and CVD::threshold().
iterator CVD::BasicImage< T >::end | ( | ) | [inline] |
Returns an iterator referencing the pixel immediately after the last (bottom-right) pixel in the image.
Reimplemented from CVD::SubImage< T >.