![]() |
stromx
0.8.0
|
Abstract image. More...
#include <Image.h>
Public Types | |
| enum | PixelType { NONE, MONO_8, MONO_16, RGB_24, RGB_48, BGR_24, BGR_48, BAYERBG_8, BAYERBG_16, BAYERGB_8, BAYERGB_16 } |
Public Types inherited from stromx::runtime::Matrix | |
| enum | ValueType { NONE, INT_8, UINT_8, INT_16, UINT_16, INT_32, UINT_32, FLOAT_32, FLOAT_64 } |
Public Member Functions | |
| virtual unsigned int | width () const =0 |
| virtual unsigned int | height () const =0 |
| virtual unsigned int | stride () const =0 |
| virtual PixelType | pixelType () const =0 |
| virtual unsigned int | pixelSize () const |
| virtual unsigned int | numChannels () const |
| virtual unsigned int | depth () const |
| virtual void | initializeImage (const unsigned int width, const unsigned int height, const unsigned int stride, uint8_t *data, const PixelType pixelType)=0 |
Public Member Functions inherited from stromx::runtime::Matrix | |
| virtual uint8_t * | buffer ()=0 |
| virtual unsigned int | bufferSize () const =0 |
| virtual unsigned int | rows () const =0 |
| virtual unsigned int | cols () const =0 |
| virtual ValueType | valueType () const =0 |
| virtual unsigned int | valueSize () const |
| virtual uint8_t * | data ()=0 |
| virtual const uint8_t * | data () const =0 |
| virtual void | initializeMatrix (const unsigned int rows, const unsigned int cols, const unsigned int stride, uint8_t *data, const ValueType valueType)=0 |
| template<class T > | |
| T & | at (const unsigned row, const unsigned col) |
| template<class T > | |
| const T & | at (const unsigned int row, const unsigned col) const |
| template<class T > | |
| const T | value (const unsigned int row, const unsigned int col) const |
Public Member Functions inherited from stromx::runtime::Data | |
| virtual void | serialize (OutputProvider &out) const |
| virtual void | deserialize (InputProvider &in, const Version &version) |
Public Member Functions inherited from stromx::runtime::DataInterface | |
| virtual const Version & | version () const =0 |
| virtual const std::string & | type () const =0 |
| virtual const std::string & | package () const =0 |
| virtual const VariantHandle & | variant () const =0 |
| virtual Data * | clone () const =0 |
| bool | isVariant (const VariantInterface &v) const |
Static Public Member Functions | |
| static unsigned int | pixelSize (const PixelType pixelType) |
| static unsigned int | numChannels (const PixelType pixelType) |
| static unsigned | depth (const PixelType pixelType) |
Static Public Member Functions inherited from stromx::runtime::Matrix | |
| static unsigned int | valueSize (const ValueType valueType) |
Static Protected Member Functions | |
| static const runtime::VariantHandle | dataVariantFromPixelType (const PixelType pixelType) |
| static Matrix::ValueType | valueTypeFromPixelType (const PixelType pixelType) |
Static Protected Member Functions inherited from stromx::runtime::Matrix | |
| static const runtime::VariantHandle | dataVariantFromValueType (const ValueType valueType) |
Abstract image.
|
staticprotected |
Returns the data variant defined by the input pixelType.
|
virtual |
Returns the size of a pixel of a single channel of the image in bytes.
|
static |
Returns the size of a single channel of a given pixel type in bytes.
|
pure virtual |
Returns the height of the image.
Implemented in stromx::runtime::ImageWrapper.
|
pure virtual |
Initializes the image to the given data. Note that this function does not change the image buffer but merely changes the description of the data contained in the image buffer.
Implemented in stromx::cvsupport::Image.
|
virtual |
Returns the number of channels of the image.
|
static |
Returns the number of channels for a given pixel type.
|
virtual |
Returns the size of a single pixel in bytes.
|
static |
Returns the size of a single pixel of type pixelType in bytes.
|
pure virtual |
Returns the type of the pixel data of the image.
Implemented in stromx::runtime::ImageWrapper.
|
pure virtual |
Returns the size of a line in the image in bytes.
Implements stromx::runtime::Matrix.
Implemented in stromx::runtime::ImageWrapper.
|
staticprotected |
Returns the value type which corresponds to the input pixelType.
|
pure virtual |
Returns the width of the image.
Implemented in stromx::runtime::ImageWrapper.
1.8.12