21#include <opencv2/core/core.hpp>
81 void sendCv(cv::Mat
const & img,
int quality = 75)
const;
91 void sendCvGRAY(cv::Mat
const & img,
int quality = 75)
const;
101 void sendCvBGR(cv::Mat
const & img,
int quality = 75)
const;
111 void sendCvRGB(cv::Mat
const & img,
int quality = 75)
const;
121 void sendCvRGBA(cv::Mat
const & img,
int quality = 75)
const;
175 std::shared_ptr<VideoOutput> itsGadget;
176 mutable bool itsDidGet;
177 mutable bool itsDidSend;
JeVois processing engine - gets images from camera sensor, processes them, and sends results over USB...
Exception-safe wrapper around a raw image to be sent over USB.
RawImage const & get() const
Get a pre-allocated image so that we can fill the pixel data and later send out over USB using send()
OutputFrame(OutputFrame &&other)=default
Move constructor.
void sendScaledCvGRAY(cv::Mat const &img, int quality=75) const
Shorthand to send a GRAY cv::Mat after converting it to the current output format.
void sendCvBGR(cv::Mat const &img, int quality=75) const
Shorthand to send a BGR cv::Mat after converting it to the current output format.
void sendScaledCvRGBA(cv::Mat const &img, int quality=75) const
Shorthand to send a RGBA cv::Mat after converting it to the current output format.
void sendScaledCvRGB(cv::Mat const &img, int quality=75) const
Shorthand to send a RGB cv::Mat after converting it to the current output format.
void sendCv(cv::Mat const &img, int quality=75) const
Shorthand to send a cv::Mat after converting / scaling it to the current output format.
void sendCvGRAY(cv::Mat const &img, int quality=75) const
Shorthand to send a GRAY cv::Mat after converting it to the current output format.
~OutputFrame()
Destructor, returns the buffers to the driver as needed.
void sendScaledCvBGR(cv::Mat const &img, int quality=75) const
Shorthand to send a BGR cv::Mat after converting it to the current output format.
void sendCvRGB(cv::Mat const &img, int quality=75) const
Shorthand to send a RGB cv::Mat after converting it to the current output format.
void sendCvRGBA(cv::Mat const &img, int quality=75) const
Shorthand to send a RGBA cv::Mat after converting it to the current output format.
void send() const
Send an image out over USB to the host computer.
A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget.
Main namespace for all JeVois classes and functions.