JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
Functions for RawImage conversion, processing, drawing.
Enumerations | |
enum | Font { Font5x7 , Font6x10 , Font7x13 , Font8x13bold , Font9x15bold , Font10x20 , Font11x22 , Font12x22 , Font14x26 , Font15x28 , Font16x29 , Font20x38 } |
Available fonts for writeText() More... | |
Functions | |
cv::Mat | cvImage (RawImage const &src) |
Create an OpenCV image from the existing RawImage data, sharing the pixel memory rather than copying it. | |
cv::Mat | convertToCvGray (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV gray byte. | |
cv::Mat | convertToCvBGR (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV BGR byte. | |
cv::Mat | convertToCvRGB (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV RGB byte. | |
cv::Mat | convertToCvRGBA (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV RGB-A byte. | |
void | byteSwap (RawImage &img) |
Swap pairs of bytes in a RawImage. | |
void | paste (RawImage const &src, RawImage &dest, int dx, int dy) |
Paste an image within another of same pixel type. | |
void | pasteGreyToYUYV (cv::Mat const &src, RawImage &dest, int dx, int dy) |
Paste a grey byte image into a YUYV image. | |
void | pasteBGRtoYUYV (cv::Mat const &src, RawImage &dst, int dx, int dy) |
Paste a BGR byte image into a YUYV image. | |
void | pasteRGBtoYUYV (cv::Mat const &src, RawImage &dst, int dx, int dy) |
Paste a RGB byte image into a YUYV image. | |
void | roipaste (RawImage const &src, int x, int y, unsigned int w, unsigned int h, RawImage &dest, int dx, int dy) |
Paste an ROI from an image to within another of same pixel type. | |
void | drawDisk (RawImage &img, int x, int y, unsigned int rad, unsigned int col) |
Draw a disk in a YUYV image. | |
void | drawCircle (RawImage &img, int x, int y, unsigned int rad, unsigned int thick, unsigned int col) |
Draw a circle in a YUYV image. | |
bool | clipLine (int wxmin, int wymin, int wxmax, int wymax, int &x1, int &y1, int &x2, int &y2) |
Clip a line to fit inside a viewport [wxmin...wxmax[ x [wymin...wymax[. | |
void | drawLine (RawImage &img, int x1, int y1, int x2, int y2, unsigned int thick, unsigned int col) |
Draw a line in a YUYV image. | |
void | drawRect (RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int thick, unsigned int col) |
Draw a rectangle in a YUYV image. | |
void | drawRect (RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int col) |
Draw a rectangle in a YUYV image. | |
void | drawFilledRect (RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int col) |
Draw a filled rectangle in a YUYV image. | |
void | writeText (RawImage &img, std::string const &txt, int x, int y, unsigned int col, Font font=Font6x10) |
Write some text in an image. | |
void | writeText (RawImage &img, char const *txt, int x, int y, unsigned int col, Font font=Font6x10) |
Write some text in an image. | |
int | itext (RawImage &img, std::string const &txt, int y=3, unsigned int col=jevois::yuyv::White, Font font=Font6x10) |
Shorthand to write some text in an image, with x = 3 and return the next y position. | |
int | itext (RawImage &img, char const *txt, int y=3, unsigned int col=jevois::yuyv::White, Font font=Font6x10) |
Shorthand to write some text in an image, with x = 3 and return the next y position. | |
void | convertCvBGRtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert a BGR cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | convertCvRGBtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert a RGB cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | convertCvRGBAtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert an RGBA cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | convertCvGRAYtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert a Gray cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | unpackCvRGBAtoGrayRawImage (cv::Mat const &src, RawImage &dst) |
Split an RGBA cv::Mat into a 4x taller grey RawImage with already-allocated pixels. | |
void | hFlipYUYV (RawImage &img) |
Flip a YUYV RawImage horizontally while preserving color information. | |
void | convertCvRGBtoCvYUYV (cv::Mat const &src, cv::Mat &dst) |
OpenCV does not provide conversion from RGB to YUYV in cvtColor(), so this function provides it. | |
void | convertCvBGRtoCvYUYV (cv::Mat const &src, cv::Mat &dst) |
OpenCV does not provide conversion from BGR to YUYV in cvtColor(), so this function provides it. | |
void | convertCvGRAYtoCvYUYV (cv::Mat const &src, cv::Mat &dst) |
OpenCV does not provide conversion from GRAY to YUYV in cvtColor(), so this function provides it. | |
void | convertCvRGBAtoCvYUYV (cv::Mat const &src, cv::Mat &dst) |
OpenCV does not provide conversion from RGBA to YUYV in cvtColor(), so this function provides it. | |
void | convertBayerToYUYV (RawImage const &src, RawImage &dst) |
Convert from Bayer to YUYV, only used internally by Camera class. | |
void | convertGreyToYUYV (RawImage const &src, RawImage &dst) |
Convert from Grey (monochrome) to YUYV, only used internally by Camera class. | |
Convert from Bayer to YUYV, only used internally by Camera class.
Both src and dst should already have allocated buffers of correct sizes.
Definition at line 1629 of file RawImageOps.C.
References cvImage(), jevois::RawImage::fmt, jevois::RawImage::height, LFATAL, jevois::RawImage::pixelsw(), and jevois::RawImage::width.
Referenced by jevois::CameraDevice::get().
Convert from Grey (monochrome) to YUYV, only used internally by Camera class.
Both src and dst should already have allocated buffers of correct sizes.
Definition at line 1649 of file RawImageOps.C.
References cvImage(), jevois::RawImage::fmt, jevois::RawImage::height, LFATAL, and jevois::RawImage::width.
Referenced by jevois::CameraDevice::get().