roviz  0.7
Code Documentation of roviz
image_m.h
1 #ifndef PORTABLEIMAGEMUTABLE_H
2 #define PORTABLEIMAGEMUTABLE_H
3 
4 #include "streams/image.h"
5 
14 class ROVIZ_EXPORT ImageMutable : public Image
15 {
16 public:
17  ImageMutable();
18 #ifdef QT_PRESENT
19 
27  ImageMutable(QImage img, std::initializer_list<SourceID> sources = {});
28 #endif
29 #ifdef OPENCV_PRESENT
30 
38  ImageMutable(cv::Mat img, std::initializer_list<SourceID> sources = {});
39 #endif
40 
46  ImageMutable(int w, int h, enum Format f, std::initializer_list<SourceID> sources = {});
47  ~ImageMutable() = default;
48 
52  unsigned char *data(void);
53 };
54 
55 #endif // PORTABLEIMAGEMUTABLE_H
Format
Enum of all supported image formats.
Definition: image.h:42
const unsigned char * data(void) const
Definition: image.cpp:130
A portable image class with smart memory management.
Definition: image.h:35
The mutable version Image.
Definition: image_m.h:14