JeVois  1.20
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
RawImageOps.H File Reference
#include <jevois/Image/RawImage.H>
#include <opencv2/core/core.hpp>
Include dependency graph for RawImageOps.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 jevois
 
 jevois::rawimage
 

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. More...
 
cv::Mat jevois::rawimage::convertToCvGray (RawImage const &src)
 Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV gray byte. More...
 
cv::Mat jevois::rawimage::convertToCvBGR (RawImage const &src)
 Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV BGR byte. More...
 
cv::Mat jevois::rawimage::convertToCvRGB (RawImage const &src)
 Convert RawImage to OpenCV doing color conversion from any RawImage source pixel to OpenCV RGB byte. More...
 
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. More...
 
void jevois::rawimage::byteSwap (RawImage &img)
 Swap pairs of bytes in a RawImage. More...
 
void jevois::rawimage::paste (RawImage const &src, RawImage &dest, int dx, int dy)
 Paste an image within another of same pixel type. More...
 
void jevois::rawimage::pasteGreyToYUYV (cv::Mat const &src, RawImage &dest, int dx, int dy)
 Paste a grey byte image into a YUYV image. More...
 
void jevois::rawimage::pasteBGRtoYUYV (cv::Mat const &src, RawImage &dst, int dx, int dy)
 Paste a BGR byte image into a YUYV image. More...
 
void jevois::rawimage::pasteRGBtoYUYV (cv::Mat const &src, RawImage &dst, int dx, int dy)
 Paste a RGB byte image into a YUYV image. More...
 
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. More...
 
void jevois::rawimage::drawDisk (RawImage &img, int x, int y, unsigned int rad, unsigned int col)
 Draw a disk in a YUYV image. More...
 
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. More...
 
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[. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
void jevois::rawimage::hFlipYUYV (RawImage &img)
 Flip a YUYV RawImage horizontally while preserving color information. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
void jevois::rawimage::convertBayerToYUYV (RawImage const &src, RawImage &dst)
 Convert from Bayer to YUYV, only used internally by Camera class. More...
 
void jevois::rawimage::convertGreyToYUYV (RawImage const &src, RawImage &dst)
 Convert from Grey (monochrome) to YUYV, only used internally by Camera class. More...
 
cv::Mat jevois::rescaleCv (cv::Mat const &img, cv::Size const &newdims)
 Rescale an OpenCV image, choosing the right kind of interpolation. More...