JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
Go to the source code of this file.
Namespaces | |
namespace | jevois |
Main namespace for all JeVois classes and functions. | |
namespace | jevois::rawimage |
Functions for RawImage conversion, processing, drawing. | |
Enumerations | |
enum | jevois::rawimage::Font { jevois::rawimage::Font5x7 , jevois::rawimage::Font6x10 , jevois::rawimage::Font7x13 , jevois::rawimage::Font8x13bold , jevois::rawimage::Font9x15bold , jevois::rawimage::Font10x20 , jevois::rawimage::Font11x22 , jevois::rawimage::Font12x22 , jevois::rawimage::Font14x26 , jevois::rawimage::Font15x28 , jevois::rawimage::Font16x29 , jevois::rawimage::Font20x38 } |
Available fonts for writeText() More... | |
Functions | |
cv::Mat | jevois::rawimage::cvImage (RawImage const &src) |
Create an OpenCV image from the existing RawImage data, sharing the pixel memory rather than copying it. | |
cv::Mat | jevois::rawimage::convertToCvGray (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV gray byte. | |
cv::Mat | jevois::rawimage::convertToCvBGR (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV BGR byte. | |
cv::Mat | jevois::rawimage::convertToCvRGB (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV RGB byte. | |
cv::Mat | jevois::rawimage::convertToCvRGBA (RawImage const &src) |
Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV RGB-A byte. | |
void | jevois::rawimage::byteSwap (RawImage &img) |
Swap pairs of bytes in a RawImage. | |
void | jevois::rawimage::paste (RawImage const &src, RawImage &dest, int dx, int dy) |
Paste an image within another of same pixel type. | |
void | jevois::rawimage::pasteGreyToYUYV (cv::Mat const &src, RawImage &dest, int dx, int dy) |
Paste a grey byte image into a YUYV image. | |
void | jevois::rawimage::pasteBGRtoYUYV (cv::Mat const &src, RawImage &dst, int dx, int dy) |
Paste a BGR byte image into a YUYV image. | |
void | jevois::rawimage::pasteRGBtoYUYV (cv::Mat const &src, RawImage &dst, int dx, int dy) |
Paste a RGB byte image into a YUYV image. | |
void | jevois::rawimage::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 | jevois::rawimage::drawDisk (RawImage &img, int x, int y, unsigned int rad, unsigned int col) |
Draw a disk in a YUYV image. | |
void | jevois::rawimage::drawCircle (RawImage &img, int x, int y, unsigned int rad, unsigned int thick, unsigned int col) |
Draw a circle in a YUYV image. | |
bool | jevois::rawimage::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 | jevois::rawimage::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 | jevois::rawimage::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 | jevois::rawimage::drawRect (RawImage &img, int x, int y, unsigned int w, unsigned int h, unsigned int col) |
Draw a rectangle in a YUYV image. | |
void | jevois::rawimage::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 | jevois::rawimage::writeText (RawImage &img, std::string const &txt, int x, int y, unsigned int col, Font font=Font6x10) |
Write some text in an image. | |
void | jevois::rawimage::writeText (RawImage &img, char const *txt, int x, int y, unsigned int col, Font font=Font6x10) |
Write some text in an image. | |
int | jevois::rawimage::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 | jevois::rawimage::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 | jevois::rawimage::convertCvBGRtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert a BGR cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | jevois::rawimage::convertCvRGBtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert a RGB cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | jevois::rawimage::convertCvRGBAtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert an RGBA cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | jevois::rawimage::convertCvGRAYtoRawImage (cv::Mat const &src, RawImage &dst, int quality) |
Convert a Gray cv::Mat to RawImage with already-allocated pixels and pixel type. | |
void | jevois::rawimage::unpackCvRGBAtoGrayRawImage (cv::Mat const &src, RawImage &dst) |
Split an RGBA cv::Mat into a 4x taller grey RawImage with already-allocated pixels. | |
void | jevois::rawimage::hFlipYUYV (RawImage &img) |
Flip a YUYV RawImage horizontally while preserving color information. | |
void | jevois::rawimage::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 | jevois::rawimage::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 | jevois::rawimage::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 | jevois::rawimage::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 | jevois::rawimage::convertBayerToYUYV (RawImage const &src, RawImage &dst) |
Convert from Bayer to YUYV, only used internally by Camera class. | |
void | jevois::rawimage::convertGreyToYUYV (RawImage const &src, RawImage &dst) |
Convert from Grey (monochrome) to YUYV, only used internally by Camera class. | |
cv::Mat | jevois::rescaleCv (cv::Mat const &img, cv::Size const &newdims) |
Rescale an OpenCV image, choosing the right kind of interpolation. | |