17 #ifndef STROMX_RUNTIME_IMAGE_H 18 #define STROMX_RUNTIME_IMAGE_H 21 #include "stromx/runtime/Matrix.h" 49 virtual unsigned int width()
const = 0;
52 virtual unsigned int height()
const = 0;
55 virtual unsigned int stride()
const = 0;
58 virtual PixelType pixelType()
const = 0;
61 virtual unsigned int pixelSize()
const;
64 virtual unsigned int numChannels()
const;
67 virtual unsigned int depth()
const;
74 virtual void initializeImage(
const unsigned int width,
75 const unsigned int height,
76 const unsigned int stride,
78 const PixelType pixelType) = 0;
81 static unsigned int pixelSize(
const PixelType pixelType);
84 static unsigned int numChannels(
const PixelType pixelType);
87 static unsigned depth(
const PixelType pixelType);
94 static Matrix::ValueType valueTypeFromPixelType(
const PixelType pixelType);
99 class STROMX_RUNTIME_API data_traits<Image>
108 #endif // STROMX_RUNTIME_IMAGE_H Definition: VariantHandle.h:34
The stromx class library.
Definition: AdjustRgbChannels.cpp:29
Abstract image.
Definition: Matrix.h:28
Abstract image.
Definition: Image.h:28