eLynx SDK
v3.0.1 C++ image processing API reference |
#include <ImageImpl.h>
Public Types | |
typedef Pixel | Pixel_t |
Public Member Functions | |
bool | CopyAndForget (boost::shared_ptr< ImageImpl< Pixel > > &iospImage) |
uint32 | sizeofWidth () const |
uint32 | sizeofMap () const |
Constructors, destructor and assignment | |
ImageImpl () | |
ImageImpl (uint32 iWidth, uint32 iHeight) | |
ImageImpl (uint32 iWidth, uint32 iHeight, const Pixel &iPixel) | |
ImageImpl (const ImageImpl &iImage) | |
const ImageImpl & | operator= (const ImageImpl &iImage) |
AbstractImage implementation | |
virtual EPixelFormat | GetPixelFormat () const |
virtual bool | IsValid () const |
virtual boost::shared_ptr < IPixelIterator > | Begin () |
virtual boost::shared_ptr < IPixelIterator > | Begin () const |
virtual boost::shared_ptr < IPixelIterator > | End () |
virtual boost::shared_ptr < IPixelIterator > | End () const |
Protected Attributes | |
boost::scoped_array< Pixel_t > | _spMap |
Pixel specialization | |
const Pixel_t * | GetPixel (uint32 iX=0, uint32 iY=0) const |
Pixel_t * | GetPixel (uint32 iX=0, uint32 iY=0) |
const Pixel_t * | GetPixelEnd () const |
Pixel_t * | GetPixelEnd () |
const Pixel::type * | GetSamples () const |
Pixel::type * | GetSamples () |
const Pixel::type * | GetSamplesEnd () const |
Pixel::type * | GetSamplesEnd () |
static Pixel_t | Null () |
static Pixel_t | White () |
static Pixel_t | Black () |
Definition at line 47 of file ImageImpl.h.
typedef Pixel eLynx::Image::ImageImpl< Pixel >::Pixel_t |
Definition at line 50 of file ImageImpl.h.
eLynx::Image::ImageImpl< Pixel >::ImageImpl | ( | ) | [explicit] |
Default constructor. Image is built as invalid.
eLynx::Image::ImageImpl< Pixel >::ImageImpl | ( | uint32 | iWidth, | |
uint32 | iHeight | |||
) | [explicit] |
Constructor with image dimension, map is allocated with unset pixels. Image is valid, map is allocated but pixels are uninitialized.
iWidth | The image width in pixels. | |
iHeight | The image height in pixels. |
eLynx::Image::ImageImpl< Pixel >::ImageImpl | ( | uint32 | iWidth, | |
uint32 | iHeight, | |||
const Pixel & | iPixel | |||
) | [explicit] |
Constructor with image dimension and pixel value, map is filled with pixel value.
iWidth | The image width in pixels. | |
iHeight | The image height in pixels. | |
iPixel | The pixel value to fill the map. |
eLynx::Image::ImageImpl< Pixel >::ImageImpl | ( | const ImageImpl< Pixel > & | iImage | ) |
Copy constructor with image dimension.
iImage | The image to copy. |
const ImageImpl& eLynx::Image::ImageImpl< Pixel >::operator= | ( | const ImageImpl< Pixel > & | iImage | ) |
Assignment operator =
iImage | The image to assign to this. |
virtual EPixelFormat eLynx::Image::ImageImpl< Pixel >::GetPixelFormat | ( | ) | const [virtual] |
Retrieve pixel format.
Implements eLynx::Image::AbstractImage.
virtual bool eLynx::Image::ImageImpl< Pixel >::IsValid | ( | ) | const [virtual] |
Check image validity.
Reimplemented from eLynx::Image::AbstractImage.
virtual boost::shared_ptr<IPixelIterator> eLynx::Image::ImageImpl< Pixel >::Begin | ( | ) | [virtual] |
Returns an iterator pointing to the beginning of the Pixel map
Implements eLynx::Image::AbstractImage.
virtual boost::shared_ptr<IPixelIterator> eLynx::Image::ImageImpl< Pixel >::Begin | ( | ) | const [virtual] |
Returns an const iterator pointing to the beginning of the Pixel map
Implements eLynx::Image::AbstractImage.
virtual boost::shared_ptr<IPixelIterator> eLynx::Image::ImageImpl< Pixel >::End | ( | ) | [virtual] |
Returns an iterator pointing to the end of the Pixel map
Implements eLynx::Image::AbstractImage.
virtual boost::shared_ptr<IPixelIterator> eLynx::Image::ImageImpl< Pixel >::End | ( | ) | const [virtual] |
Returns an const iterator pointing to the end of the Pixel map
Implements eLynx::Image::AbstractImage.
const Pixel_t* eLynx::Image::ImageImpl< Pixel >::GetPixel | ( | uint32 | iX = 0 , |
|
uint32 | iY = 0 | |||
) | const |
Retrieve pointeur to read pixel.
iX | The x coordinate pixel in image in range [0, GetWidth()-1]. | |
iY | The y coordinate pixel in image in range [0, GetHeight()-1]. |
Pixel_t* eLynx::Image::ImageImpl< Pixel >::GetPixel | ( | uint32 | iX = 0 , |
|
uint32 | iY = 0 | |||
) |
Retrieve pointeur to read/write pixel.
iX | The x coordinate pixel in image in range [0, GetWidth()-1]. | |
iY | The y coordinate pixel in image in range [0, GetHeight()-1]. |
const Pixel_t* eLynx::Image::ImageImpl< Pixel >::GetPixelEnd | ( | ) | const |
Retrieve const pointeur to lastest pixel of map.
Pixel_t* eLynx::Image::ImageImpl< Pixel >::GetPixelEnd | ( | ) |
Retrieve pointeur to read/write lastest pixel of map.
const Pixel::type* eLynx::Image::ImageImpl< Pixel >::GetSamples | ( | ) | const |
Retrieve pointeur to read only map as array of pixel::type samples.
Pixel::type* eLynx::Image::ImageImpl< Pixel >::GetSamples | ( | ) |
Retrieve pointeur to read/write map as array of pixel::type samples.
const Pixel::type* eLynx::Image::ImageImpl< Pixel >::GetSamplesEnd | ( | ) | const |
Retrieve pointeur to latest read only map as array of pixel::type.
Pixel::type* eLynx::Image::ImageImpl< Pixel >::GetSamplesEnd | ( | ) |
Retrieve pointeur to lastest read/write map as array of pixel::type.
static Pixel_t eLynx::Image::ImageImpl< Pixel >::Null | ( | ) | [static] |
Get a pixel with 0 value.
static Pixel_t eLynx::Image::ImageImpl< Pixel >::White | ( | ) | [static] |
static Pixel_t eLynx::Image::ImageImpl< Pixel >::Black | ( | ) | [static] |
bool eLynx::Image::ImageImpl< Pixel >::CopyAndForget | ( | boost::shared_ptr< ImageImpl< Pixel > > & | iospImage | ) |
Low level service to copy and release input image.
TO USE WITH SPECIAL CARE. YOU MUST UNDERSTAND OBJECT LIFE CYCLE.
iospImage | image to copy and be released. |
uint32 eLynx::Image::ImageImpl< Pixel >::sizeofWidth | ( | ) | const |
Retrieve the number of bytes per line.
uint32 eLynx::Image::ImageImpl< Pixel >::sizeofMap | ( | ) | const |
Retrieve the number of bytes for whole map.
Reimplemented from eLynx::Image::AbstractImage.
boost::scoped_array<Pixel_t> eLynx::Image::ImageImpl< Pixel >::_spMap [protected] |
Aggregation of an array[width x height] of specialized pixels.
Definition at line 157 of file ImageImpl.h.