1 #ifndef __PBIO_API__PBIO__IMAGE_H_
2 #define __PBIO_API__PBIO__IMAGE_H_
15 typedef HeavySmartPtr<Image>::tPtr Ptr;
24 virtual const unsigned char* data()
const throw();
25 virtual int32_t width() const throw();
26 virtual int32_t height() const throw();
27 virtual int32_t format() const throw();
30 unsigned char* data() throw();
37 unsigned char* const _data;
60 const Format format) :
67 (format != FORMAT_GRAY &&
68 format != FORMAT_RGB &&
69 format != FORMAT_BGR)) ?
70 (unsigned char*) NULL :
71 new unsigned char[rows * cols * (format == FORMAT_GRAY ? 1 : 3)])
84 const unsigned char* Image::data()
const throw()
90 int32_t Image::width()
const throw()
96 int32_t Image::height()
const throw()
102 int32_t Image::format()
const throw()
108 unsigned char* Image::data() throw()
119 #endif // __PBIO_API__PBIO__IMAGE_H_
IRawImage - Raw image interface.
Raw image interface. To use this interface, you need to inherit it and create your own implementation...
Definition: IRawImage.h:30