JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
Share this page: |
|
|
|
|
|
|
Go to the documentation of this file.
3 #include <opencv2/core/core.hpp>
4 #include <opencv2/imgproc/imgproc.hpp>
JEVOIS_REGISTER_MODULE(TutorialConvert)
Exception-safe wrapper around a raw image to be sent over USB.
A raw image as coming from a V4L2 Camera and/or being sent out to a USB Gadget.
cv::Mat convertToCvBGR(RawImage const &src)
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV BGR byte.
void require(char const *info, unsigned int w, unsigned int h, unsigned int f) const
Require a particular image size and format, issue a fatal error message and throw if no match.
unsigned int width
Image width in pixels.
virtual void process(jevois::InputFrame &&inframe, jevois::OutputFrame &&outframe) override
Processing function, version that receives a frame from camera and sends a frame out over USB.
void convertCvBGRtoRawImage(cv::Mat const &src, RawImage &dst, int quality)
Convert a BGR cv::Mat to RawImage with already-allocated pixels and pixel type.
Virtual base class for a vision processing module.
unsigned int height
Image height in pixels.
unsigned int fmt
Pixel format as a V4L2_PIX_FMT_XXX.
virtual ~TutorialConvert()