4 #include <initializer_list> 5 #include "core/export_handling.h" 6 #include "streams/stream_object.h" 12 #include <opencv2/core.hpp> 13 #include <opencv2/imgproc.hpp> 69 Image(std::initializer_list<SourceID> sources = {});
81 Image(QImage img, std::initializer_list<SourceID> sources = {});
93 Image(cv::Mat img, std::initializer_list<SourceID> sources = {});
101 int width(
void)
const;
106 int height(
void)
const;
111 enum Format format(
void)
const;
116 int bitsPerPixel(
void)
const;
121 int bytesPerPixel(
void)
const;
126 int dataLength(
void)
const;
131 const unsigned char *data(
void)
const;
143 const QImage toQt(
void);
145 #ifdef OPENCV_PRESENT 157 const cv::_InputArray toCv(
void);
164 Image(
bool do_init, std::initializer_list<SourceID> sources);
167 #if ROVIZ_BACKEND == ROVIZ_BACKEND_Dev 180 DECLARE_STREAM_OBJECT(
Image)
Base class of all objects that can be transported with a stream.
Definition: stream_object.h:39
Private part of the Ouput class.
Definition: output_p.h:16
Format
Enum of all supported image formats.
Definition: image.h:42
A portable image class with smart memory management.
Definition: image.h:35
Private part of the Image class.
Definition: image_p.h:19