Rpi-hw  0.7.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
rpihw::image::base< T > Class Template Referenceabstract

Generic image. More...

#include <base.hpp>

+ Inheritance diagram for rpihw::image::base< T >:

Public Member Functions

virtual uint16_t getWidth () const =0
 Returns the width of the image.
 
virtual uint16_t getHeight () const =0
 Returns the height of the image.
 
virtual uint8_t getSpectrum () const =0
 Returns the number of image channels.
 
virtual color_iterator< T > getData (uint16_t x, uint16_t y) const =0
 Returns the color of a pixel. More...
 
virtual T getData (uint16_t x, uint16_t y, uint8_t c) const =0
 Returns the channel value of a pixel. More...
 

Detailed Description

template<typename T>
class rpihw::image::base< T >

Generic image.

Definition at line 44 of file base.hpp.

Member Function Documentation

template<typename T>
virtual color_iterator< T > rpihw::image::base< T >::getData ( uint16_t  x,
uint16_t  y 
) const
pure virtual

Returns the color of a pixel.

Parameters
[in]xThe horizontal position of the pixel.
[in]yThe vertical position of the pixel.
Returns
An iterator to the color data.

Implemented in rpihw::image::bitmap< T >.

template<typename T>
virtual T rpihw::image::base< T >::getData ( uint16_t  x,
uint16_t  y,
uint8_t  c 
) const
pure virtual

Returns the channel value of a pixel.

Parameters
[in]xThe horizontal position of the pixel.
[in]yThe vertical position of the pixel.
[in]cThe color channel.
Returns
The channel value of the pixel.

Implemented in rpihw::image::bitmap< T >.


The documentation for this class was generated from the following file: