|
eLynx SDK
v3.3.0 C++ image processing API reference |
ImageImpl is the template class that defines abstract image implementation. More...
#include <ImageImpl.h>
Public Member Functions | |
| bool | CopyAndForget (boost::shared_ptr< ImageImpl< Pixel > > &iospImage) |
| Low level service to copy and release input image. | |
| uint32 | sizeofWidth () const |
| Retrieve the number of bytes per line. | |
| uint32 | sizeofMap () const |
| Retrieve the number of bytes for whole map. | |
Constructors, destructor and assignment | |
| ImageImpl () | |
| Default constructor. | |
| ImageImpl (uint32 iWidth, uint32 iHeight) | |
| Constructor with image dimension, map is allocated with unset pixels. | |
| ImageImpl (uint32 iWidth, uint32 iHeight, const Pixel &iPixel) | |
| Constructor with image dimension and pixel value, map is filled with pixel value. | |
| ImageImpl (const ImageImpl &iImage) | |
| Copy constructor with image dimension. | |
| const ImageImpl & | operator= (const ImageImpl &iImage) |
| Assignment operator =. | |
AbstractImage implementation | |
| virtual EPixelFormat | GetPixelFormat () const |
| Retrieve pixel format. | |
| virtual bool | IsValid () const |
| Check image validity. | |
| virtual boost::shared_ptr < IPixelIterator > | Begin () |
| Returns an iterator pointing to the beginning of the Pixel map. | |
| virtual boost::shared_ptr < IPixelIterator > | Begin () const |
| Returns an const iterator pointing to the beginning of the Pixel map. | |
| virtual boost::shared_ptr < IPixelIterator > | End () |
| Returns an iterator pointing to the end of the Pixel map. | |
| virtual boost::shared_ptr < IPixelIterator > | End () const |
| Returns an const iterator pointing to the end of the Pixel map. | |
Protected Attributes | |
| boost::scoped_array< Pixel > | _spMap |
| Aggregation of an array[width x height] of specialized pixels. | |
Pixel specialization | |
| const Pixel * | GetPixel (uint32 iX=0, uint32 iY=0) const |
| Retrieve pointeur to read pixel. | |
| Pixel * | GetPixel (uint32 iX=0, uint32 iY=0) |
| Retrieve pointeur to read/write pixel. | |
| const Pixel * | GetPixelEnd () const |
| Retrieve const pointeur to lastest pixel of map. | |
| Pixel * | GetPixelEnd () |
| Retrieve pointeur to read/write lastest pixel of map. | |
| const Pixel::type * | GetSamples () const |
| Retrieve pointeur to read only map as array of pixel::type samples. | |
| Pixel::type * | GetSamples () |
| Retrieve pointeur to read/write map as array of pixel::type samples. | |
| const Pixel::type * | GetSamplesEnd () const |
| Retrieve pointeur to latest read only map as array of pixel::type. | |
| Pixel::type * | GetSamplesEnd () |
| Retrieve pointeur to lastest read/write map as array of pixel::type. | |
| static Pixel | Null () |
| Get a pixel with 0 value. | |
| static Pixel | White () |
| static Pixel | Black () |
ImageImpl is the template class that defines abstract image implementation.
It's a specialized image that can be instanciate. This is a pixel container, it has data descriptions and accessors but no processing method.
| 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. |
| 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.
| 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. |
| 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.
| Pixel* 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* 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]. |
| const Pixel* eLynx::Image::ImageImpl< Pixel >::GetPixelEnd | ( | ) | const |
Retrieve const pointeur to lastest pixel of map.
| Pixel* eLynx::Image::ImageImpl< Pixel >::GetPixelEnd | ( | ) |
Retrieve pointeur to read/write lastest pixel of map.
| virtual EPixelFormat eLynx::Image::ImageImpl< Pixel >::GetPixelFormat | ( | ) | const [virtual] |
Retrieve pixel format.
Implements eLynx::Image::AbstractImage.
| 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.
| Pixel::type* eLynx::Image::ImageImpl< Pixel >::GetSamplesEnd | ( | ) |
Retrieve pointeur to lastest read/write map as array of pixel::type.
| const Pixel::type* eLynx::Image::ImageImpl< Pixel >::GetSamplesEnd | ( | ) | const |
Retrieve pointeur to latest read only map as array of pixel::type.
| virtual bool eLynx::Image::ImageImpl< Pixel >::IsValid | ( | ) | const [virtual] |
Check image validity.
Reimplemented from eLynx::Image::AbstractImage.
| static Pixel eLynx::Image::ImageImpl< Pixel >::Null | ( | ) | [static] |
Get a pixel with 0 value.
| const ImageImpl& eLynx::Image::ImageImpl< Pixel >::operator= | ( | const ImageImpl< Pixel > & | iImage ) |
Assignment operator =.
| iImage | The image to assign to this. |
| uint32 eLynx::Image::ImageImpl< Pixel >::sizeofMap | ( | ) | const |
Retrieve the number of bytes for whole map.
Reimplemented from eLynx::Image::AbstractImage.
| uint32 eLynx::Image::ImageImpl< Pixel >::sizeofWidth | ( | ) | const |
Retrieve the number of bytes per line.