![]() |
Visual Servoing Platform
version 3.3.0
|
#include <vpImageConvert.h>
Static Public Member Functions | |
static void | createDepthHistogram (const vpImage< uint16_t > &src_depth, vpImage< vpRGBa > &dest_rgba) |
static void | createDepthHistogram (const vpImage< uint16_t > &src_depth, vpImage< unsigned char > &dest_depth) |
static void | convert (const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest) |
static void | convert (const vpImage< vpRGBa > &src, vpImage< unsigned char > &dest) |
static void | convert (const vpImage< float > &src, vpImage< unsigned char > &dest) |
static void | convert (const vpImage< unsigned char > &src, vpImage< float > &dest) |
static void | convert (const vpImage< double > &src, vpImage< unsigned char > &dest) |
static void | convert (const vpImage< unsigned char > &src, vpImage< double > &dest) |
static void | convert (const vpImage< uint16_t > &src, vpImage< unsigned char > &dest) |
static void | convert (const vpImage< unsigned char > &src, vpImage< uint16_t > &dest) |
template<typename Type > | |
static void | convert (const vpImage< Type > &src, vpImage< Type > &dest) |
static void | convert (const IplImage *src, vpImage< vpRGBa > &dest, bool flip=false) |
static void | convert (const IplImage *src, vpImage< unsigned char > &dest, bool flip=false) |
static void | convert (const vpImage< vpRGBa > &src, IplImage *&dest) |
static void | convert (const vpImage< unsigned char > &src, IplImage *&dest) |
static void | convert (const cv::Mat &src, vpImage< vpRGBa > &dest, bool flip=false) |
static void | convert (const cv::Mat &src, vpImage< unsigned char > &dest, bool flip=false) |
static void | convert (const vpImage< vpRGBa > &src, cv::Mat &dest) |
static void | convert (const vpImage< unsigned char > &src, cv::Mat &dest, bool copyData=true) |
static void | convert (const vpImage< unsigned char > &src, yarp::sig::ImageOf< yarp::sig::PixelMono > *dest, bool copyData=true) |
static void | convert (const yarp::sig::ImageOf< yarp::sig::PixelMono > *src, vpImage< unsigned char > &dest, bool copyData=true) |
static void | convert (const vpImage< vpRGBa > &src, yarp::sig::ImageOf< yarp::sig::PixelRgba > *dest, bool copyData=true) |
static void | convert (const yarp::sig::ImageOf< yarp::sig::PixelRgba > *src, vpImage< vpRGBa > &dest, bool copyData=true) |
static void | convert (const vpImage< vpRGBa > &src, yarp::sig::ImageOf< yarp::sig::PixelRgb > *dest) |
static void | convert (const yarp::sig::ImageOf< yarp::sig::PixelRgb > *src, vpImage< vpRGBa > &dest) |
static void | split (const vpImage< vpRGBa > &src, vpImage< unsigned char > *pR, vpImage< unsigned char > *pG, vpImage< unsigned char > *pB, vpImage< unsigned char > *pa=NULL) |
static void | merge (const vpImage< unsigned char > *R, const vpImage< unsigned char > *G, const vpImage< unsigned char > *B, const vpImage< unsigned char > *a, vpImage< vpRGBa > &RGBa) |
static void | YUVToRGB (unsigned char y, unsigned char u, unsigned char v, unsigned char &r, unsigned char &g, unsigned char &b) |
static void | YUYVToRGBa (unsigned char *yuyv, unsigned char *rgba, unsigned int width, unsigned int height) |
static void | YUYVToRGB (unsigned char *yuyv, unsigned char *rgb, unsigned int width, unsigned int height) |
static void | YUYVToGrey (unsigned char *yuyv, unsigned char *grey, unsigned int size) |
static void | YUV411ToRGBa (unsigned char *yuv, unsigned char *rgba, unsigned int size) |
static void | YUV411ToRGB (unsigned char *yuv, unsigned char *rgb, unsigned int size) |
static void | YUV411ToGrey (unsigned char *yuv, unsigned char *grey, unsigned int size) |
static void | YUV422ToRGBa (unsigned char *yuv, unsigned char *rgba, unsigned int size) |
static void | YUV422ToRGB (unsigned char *yuv, unsigned char *rgb, unsigned int size) |
static void | YUV422ToGrey (unsigned char *yuv, unsigned char *grey, unsigned int size) |
static void | YUV420ToRGBa (unsigned char *yuv, unsigned char *rgba, unsigned int width, unsigned int height) |
static void | YUV420ToRGB (unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height) |
static void | YUV420ToGrey (unsigned char *yuv, unsigned char *grey, unsigned int size) |
static void | YUV444ToRGBa (unsigned char *yuv, unsigned char *rgba, unsigned int size) |
static void | YUV444ToRGB (unsigned char *yuv, unsigned char *rgb, unsigned int size) |
static void | YUV444ToGrey (unsigned char *yuv, unsigned char *grey, unsigned int size) |
static void | YV12ToRGBa (unsigned char *yuv, unsigned char *rgba, unsigned int width, unsigned int height) |
static void | YV12ToRGB (unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height) |
static void | YVU9ToRGBa (unsigned char *yuv, unsigned char *rgba, unsigned int width, unsigned int height) |
static void | YVU9ToRGB (unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height) |
static void | RGBToRGBa (unsigned char *rgb, unsigned char *rgba, unsigned int size) |
static void | RGBaToRGB (unsigned char *rgba, unsigned char *rgb, unsigned int size) |
static void | RGBToGrey (unsigned char *rgb, unsigned char *grey, unsigned int size) |
static void | RGBaToGrey (unsigned char *rgba, unsigned char *grey, unsigned int size) |
static void | RGBToRGBa (unsigned char *rgb, unsigned char *rgba, unsigned int width, unsigned int height, bool flip=false) |
static void | RGBToGrey (unsigned char *rgb, unsigned char *grey, unsigned int width, unsigned int height, bool flip=false) |
static void | GreyToRGBa (unsigned char *grey, unsigned char *rgba, unsigned int size) |
static void | GreyToRGB (unsigned char *grey, unsigned char *rgb, unsigned int size) |
static void | BGRToRGBa (unsigned char *bgr, unsigned char *rgba, unsigned int width, unsigned int height, bool flip=false) |
static void | BGRToGrey (unsigned char *bgr, unsigned char *grey, unsigned int width, unsigned int height, bool flip=false) |
static void | YCbCrToRGB (unsigned char *ycbcr, unsigned char *rgb, unsigned int size) |
static void | YCbCrToRGBa (unsigned char *ycbcr, unsigned char *rgb, unsigned int size) |
static void | YCrCbToRGB (unsigned char *ycbcr, unsigned char *rgb, unsigned int size) |
static void | YCrCbToRGBa (unsigned char *ycbcr, unsigned char *rgb, unsigned int size) |
static void | YCbCrToGrey (unsigned char *ycbcr, unsigned char *grey, unsigned int size) |
static void | MONO16ToGrey (unsigned char *grey16, unsigned char *grey, unsigned int size) |
static void | MONO16ToRGBa (unsigned char *grey16, unsigned char *rgba, unsigned int size) |
static void | HSVToRGBa (const double *hue, const double *saturation, const double *value, unsigned char *rgba, unsigned int size) |
static void | HSVToRGBa (const unsigned char *hue, const unsigned char *saturation, const unsigned char *value, unsigned char *rgba, unsigned int size) |
static void | RGBaToHSV (const unsigned char *rgba, double *hue, double *saturation, double *value, unsigned int size) |
static void | RGBaToHSV (const unsigned char *rgba, unsigned char *hue, unsigned char *saturation, unsigned char *value, unsigned int size) |
static void | HSVToRGB (const double *hue, const double *saturation, const double *value, unsigned char *rgb, unsigned int size) |
static void | HSVToRGB (const unsigned char *hue, const unsigned char *saturation, const unsigned char *value, unsigned char *rgb, unsigned int size) |
static void | RGBToHSV (const unsigned char *rgb, double *hue, double *saturation, double *value, unsigned int size) |
static void | RGBToHSV (const unsigned char *rgb, unsigned char *hue, unsigned char *saturation, unsigned char *value, unsigned int size) |
Convert image types.
The following example available in tutorial-image-converter.cpp shows how to convert an OpenCV cv::Mat image into a vpImage:
Definition at line 104 of file vpImageConvert.h.
|
static |
Converts a BGR image to greyscale. Flips the image verticaly if needed. Assumes that grey is already resized.
Definition at line 3692 of file vpImageConvert.cpp.
Referenced by vpRealSense2::getGreyFrame().
|
static |
Converts a BGR image to RGBa. The alpha component is set to vpRGBa::alpha_default.
Flips the image verticaly if needed. Assumes that rgba is already resized.
Definition at line 3662 of file vpImageConvert.cpp.
Referenced by vpRealSense2::getColorFrame().
|
static |
Convert a cv::Mat to a vpImage<unsigned char>.
A cv::Mat is an OpenCV image class. See http://opencv.willowgarage.com for the general OpenCV documentation, or http://opencv.willowgarage.com/documentation/cpp/core_basic_structures.html for the specific Mat structure documentation.
Similarily to the convert(const IplImage* src, vpImage<vpRGBa> & dest, bool flip) method, only Mat with a depth equal to 8 and a channel between 1 and 3 are converted.
src | : Source image in OpenCV format. |
dest | : Destination image in ViSP format. |
flip | : Set to true to vertically flip the converted image. |
Definition at line 803 of file vpImageConvert.cpp.
|
static |
Convert a cv::Mat to a vpImage<vpRGBa>.
A cv::Mat is an OpenCV image class. See http://opencv.willowgarage.com for the general OpenCV documentation, or http://opencv.willowgarage.com/documentation/cpp/core_basic_structures.html for the specific Mat structure documentation.
Similarily to the convert(const IplImage* src, vpImage<vpRGBa> & dest, bool flip) method, only cv::Mat with a depth equal to 8 and a channel between 1 and 3 are converted.
If the input image is of type CV_8UC1 or CV_8UC3, the alpha channel is set to vpRGBa::alpha_default, or 0 in certain case (see the warning below).
src | : Source image in OpenCV format. |
dest | : Destination image in ViSP format. |
flip | : Set to true to vertically flip the converted image. |
Definition at line 654 of file vpImageConvert.cpp.
|
static |
Convert an IplImage to a vpImage<unsigned char>.
An IplImage is an OpenCV (Intel's Open source Computer Vision Library) image structure. See http://opencvlibrary.sourceforge.net/ for general OpenCV documentation, or http://opencvlibrary.sourceforge.net/CxCore for the specific IplImage structure documentation.
src | : Source image in OpenCV format. |
dest | : Destination image in ViSP format. |
flip | : Set to true to vertically flip the converted image. |
Definition at line 400 of file vpImageConvert.cpp.
|
static |
Convert an IplImage to a vpImage<vpRGBa>.
An IplImage is an OpenCV (Intel's Open source Computer Vision Library) image structure. See http://opencvlibrary.sourceforge.net/ for general OpenCV documentation, or http://opencvlibrary.sourceforge.net/CxCore for the specific IplImage structure documentation.
If the input image has only 1 or 3 channels, the alpha channel is set to vpRGBa::alpha_default.
src | : Source image in OpenCV format. |
dest | : Destination image in ViSP format. |
flip | : Set to true to vertically flip the converted image. |
Definition at line 305 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<double> to a vpImage<unsigned char> by renormalizing between 0 and 255.
src | : source image |
dest | : destination image |
Definition at line 136 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<float> to a vpImage<unsigend char> by renormalizing between 0 and 255.
src | : source image |
dest | : destination image |
Definition at line 101 of file vpImageConvert.cpp.
|
inlinestatic |
Make a copy of an image.
src | : source image. |
dest | : destination image. |
Definition at line 127 of file vpImageConvert.h.
|
static |
Convert a vpImage<uint16_t> to a vpImage<unsigned char>.
src | : source image |
dest | : destination image |
Definition at line 160 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a cv::Mat grey level image.
A cv::Mat is an OpenCV image class. See http://opencv.willowgarage.com for the general OpenCV documentation, or http://opencv.willowgarage.com/documentation/cpp/core_basic_structures.html for the specific Mat structure documentation.
src | : source image |
dest | : destination image |
copyData | : if true, the image is copied and modification in one object will not modified the other. |
Definition at line 922 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a IplImage.
An IplImage is an OpenCV (Intel's Open source Computer Vision Library) image structure. See http://opencvlibrary.sourceforge.net/ for general OpenCV documentation, or http://opencvlibrary.sourceforge.net/CxCore for the specific IplImage structure documentation.
src | : source image |
dest | : destination image |
Definition at line 577 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a vpImage<double> by basic casting.
src | : source image |
dest | : destination image |
Definition at line 186 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a vpImage<float> by basic casting.
src | : source image |
dest | : destination image |
Definition at line 125 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a vpImage<uint16_t>.
src | : source image |
dest | : destination image |
Definition at line 173 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a vpImage<vpRGBa>. Tha alpha component is set to vpRGBa::alpha_default.
src | : source image |
dest | : destination image |
Definition at line 78 of file vpImageConvert.cpp.
Referenced by vpImageFilter::getGaussPyramidal(), vpDisplayOpenCV::getImage(), vpMbTracker::initClick(), vpMbTracker::initFromPoints(), vpMbTracker::initFromPose(), vpMbKltTracker::reinit(), vpMeNurbs::seekExtremitiesCanny(), vpMbDepthDenseTracker::setPose(), vpMbDepthNormalTracker::setPose(), vpMbKltTracker::setPose(), and vpMbEdgeTracker::track().
|
static |
Convert a vpImage<unsigned char> to a yarp::sig::ImageOf<yarp::sig::PixelMono>
A yarp::sig::Image is a YARP image class. See http://eris.liralab.it/yarpdoc/df/d15/classyarp_1_1sig_1_1Image.html for the YARP image class documentation.
src | : Source image in ViSP format. |
dest | : Destination image in YARP format. |
copyData | : Set to true to copy all the image content. If false we only update the image pointer. |
Definition at line 970 of file vpImageConvert.cpp.
Convert a vpImage<vpRGBa> to a cv::Mat color image.
A cv::Mat is an OpenCV image class. See http://opencv.willowgarage.com for the general OpenCV documentation, or http://opencv.willowgarage.com/documentation/cpp/core_basic_structures.html for the specific Mat structure documentation.
src | : source image (vpRGBa format) |
dest | : destination image (BGR format) |
Definition at line 878 of file vpImageConvert.cpp.
Convert a vpImage<vpRGBa> to a IplImage.
An IplImage is an OpenCV (Intel's Open source Computer Vision Library) image structure. See http://opencvlibrary.sourceforge.net/ for general OpenCV documentation, or http://opencvlibrary.sourceforge.net/CxCore for the specific IplImage structure documentation.
src | : source image |
dest | : destination image |
Definition at line 495 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<unsigned char> to a vpImage<vpRGBa>
src | : source image |
dest | : destination image |
Definition at line 90 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<vpRGBa> to a yarp::sig::ImageOf<yarp::sig::PixelRgb>
A yarp::sig::Image is a YARP image class. See http://eris.liralab.it/yarpdoc/df/d15/classyarp_1_1sig_1_1Image.html for the YARP image class documentation.
src | : Source image in ViSP format. |
dest | : Destination image in YARP format. |
Definition at line 1152 of file vpImageConvert.cpp.
|
static |
Convert a vpImage<vpRGBa> to a yarp::sig::ImageOf<yarp::sig::PixelRgba>
A yarp::sig::Image is a YARP image class. See http://eris.liralab.it/yarpdoc/df/d15/classyarp_1_1sig_1_1Image.html for the YARP image class documentation.
src | : Source image in ViSP format. |
dest | : Destination image in YARP format. |
copyData | : Set to true to copy all the image content. If false we only update the image pointer. |
Definition at line 1062 of file vpImageConvert.cpp.
|
static |
Convert a yarp::sig::ImageOf<yarp::sig::PixelMono> to a vpImage<unsigned char>
A yarp::sig::Image is a YARP image class. See http://eris.liralab.it/yarpdoc/df/d15/classyarp_1_1sig_1_1Image.html for the YARP image class documentation.
src | : Source image in YARP format. |
dest | : Destination image in ViSP format. |
copyData | : Set to true to copy all the image content. If false we only update the image pointer. |
Definition at line 1018 of file vpImageConvert.cpp.
|
static |
Convert a yarp::sig::ImageOf<yarp::sig::PixelRgb> to a vpImage<vpRGBa>
A yarp::sig::Image is a YARP image class. See http://eris.liralab.it/yarpdoc/df/d15/classyarp_1_1sig_1_1Image.html for the YARP image class documentation.
The alpha component of the resulting image is set to vpRGBa::alpha_default.
src | : Source image in YARP format. |
dest | : Destination image in ViSP format. |
Definition at line 1202 of file vpImageConvert.cpp.
|
static |
Convert a yarp::sig::ImageOf<yarp::sig::PixelRgba> to a vpImage<vpRGBa>
A yarp::sig::Image is a YARP image class. See http://eris.liralab.it/yarpdoc/df/d15/classyarp_1_1sig_1_1Image.html for the YARP image class documentation.
src | : Source image in YARP format. |
dest | : Destination image in ViSP format. |
copyData | : Set to true to copy all the image content. If false we only update the image pointer. |
Definition at line 1110 of file vpImageConvert.cpp.
|
static |
Convert the input 16-bits depth image to a 8-bits depth image. The input depth value is assigned a value proportional to its frequency.
src_depth | : input 16-bits depth image. |
dest_depth | : output grayscale depth image. |
Definition at line 235 of file vpImageConvert.cpp.
|
static |
Convert the input 16-bits depth image to a color depth image. The input depth value is assigned a color value proportional to its frequency. Tha alpha component of the resulting image is set to vpRGBa::alpha_default.
src_depth | : input 16-bits depth image. |
dest_rgba | : output color depth image. |
Definition at line 200 of file vpImageConvert.cpp.
|
static |
Convert from grey image to linear RGB image.
Definition at line 3638 of file vpImageConvert.cpp.
|
static |
Convert from grey image to linear RGBa image. The alpha component is set to vpRGBa::alpha_default.
Definition at line 3616 of file vpImageConvert.cpp.
|
static |
Converts an array of hue, saturation and value to an array of RGB values.
hue | : Array of hue values (range between [0 - 1]). |
saturation | : Array of saturation values (range between [0 - 1]). |
value | : Array of value values (range between [0 - 1]). |
rgb | : RGB array values converted from RGB color space. |
size | : The total image size or the number of pixels. |
Definition at line 4741 of file vpImageConvert.cpp.
|
static |
Converts an array of hue, saturation and value to an array of RGB values.
hue | : Array of hue values (range between [0 - 255]). |
saturation | : Array of saturation values (range between [0 - 255]). |
value | : Array of value values (range between [0 - 255]). |
rgb | : RGB array values converted from HSV color space. |
size | : The total image size or the number of pixels. |
Definition at line 4756 of file vpImageConvert.cpp.
|
static |
Converts an array of hue, saturation and value to an array of RGBa values.
Alpha component of the converted image is set to vpRGBa::alpha_default.
hue | : Array of hue values (range between [0 - 1]). |
saturation | : Array of saturation values (range between [0 - 1]). |
value | : Array of value values (range between [0 - 1]). |
rgba | : RGBa array values (with alpha channel set to zero) converted from HSV color space. |
size | : The total image size or the number of pixels. |
Definition at line 4663 of file vpImageConvert.cpp.
|
static |
Converts an array of hue, saturation and value to an array of RGBa values.
Alpha component of the converted image is set to vpRGBa::alpha_default.
hue | : Array of hue values (range between [0 - 255]). |
saturation | : Array of saturation values (range between [0 - 255]). |
value | : Array of value values (range between [0 - 255]). |
rgba | : RGBa array values (with alpha channel set to zero) converted from HSV color space. |
size | : The total image size or the number of pixels. |
Definition at line 4681 of file vpImageConvert.cpp.
|
static |
Merge 4 channels into an RGBa image.
R | : Red channel. |
G | : Green channel. |
B | : Blue channel. |
a | : Alpha channel. |
RGBa | : Destination RGBa image. |
Definition at line 4421 of file vpImageConvert.cpp.
|
static |
Converts a MONO16 grey scale image (each pixel is coded by two bytes) into a grey image where each pixels are coded on one byte.
grey16 | : Input image to convert (two bytes per pixel). |
grey | : Output image (one byte per pixel) |
size | : The image size or the number of pixels. |
Definition at line 4485 of file vpImageConvert.cpp.
|
static |
Converts a MONO16 grey scale image (each pixel is coded by two bytes) into a grey image where each pixels are coded on one byte.
Alpha component is set to vpRGBa::alpha_default.
grey16 | : Input image to convert (two bytes per pixel). |
rgba | : Output image. |
size | : The image size or the number of pixels. |
Definition at line 4508 of file vpImageConvert.cpp.
|
static |
Weights convert from linear RGBa to CIE luminance assuming a modern monitor. See Charles Pontyon's Colour FAQ http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
Definition at line 3524 of file vpImageConvert.cpp.
Referenced by vpRealSense2::getGreyFrame().
|
static |
Converts an array of RGBa to an array of hue, saturation, value values. The alpha channel is not used.
rgba | : RGBa array values. |
hue | : Array of hue values converted from RGB color space (range between [0 - 1]). |
saturation | : Array of saturation values converted from RGB color space (range between [0 - 1]). |
value | : Array of value values converted from RGB color space (range between [0 - 1]). |
size | : The total image size or the number of pixels. |
Definition at line 4702 of file vpImageConvert.cpp.
|
static |
Converts an array of RGBa to an array of hue, saturation, value values. The alpha channel is not used.
rgba | : RGBa array values. |
hue | : Array of hue values converted from RGB color space (range between [0 - 255]). |
saturation | : Array of saturation values converted from RGB color space (range between [0 - 255]). |
value | : Array of value values converted from RGB color space (range between [0 - 255]). |
size | : The total image size or the number of pixels. |
Definition at line 4719 of file vpImageConvert.cpp.
|
static |
Convert RGB image into RGBa image.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 3409 of file vpImageConvert.cpp.
|
static |
Weights convert from linear RGB to CIE luminance assuming a modern monitor. See Charles Pontyon's Colour FAQ http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
Definition at line 3428 of file vpImageConvert.cpp.
Referenced by vpRealSense2::getGreyFrame().
|
static |
Converts a RGB image to greyscale. Flips the image verticaly if needed. Assumes that grey is already resized.
Definition at line 3916 of file vpImageConvert.cpp.
|
static |
Converts an array of RGB to an array of hue, saturation, value values.
rgb | : RGB array values. |
hue | : Array of hue values converted from RGB color space (range between [0 - 1]). |
saturation | : Array of saturation values converted from RGB color space (range between [0 - 1]). |
value | : Array of value values converted from RGB color space (range between [0 - 1]). |
size | : The total image size or the number of pixels. |
Definition at line 4776 of file vpImageConvert.cpp.
|
static |
Converts an array of RGB to an array of hue, saturation, value values.
rgb | : RGB array values. |
hue | : Array of hue values converted from RGB color space (range between [0 - 255]). |
saturation | : Array of saturation values converted from RGB color space (range between [0 - 255]). |
value | : Array of value values converted from RGB color space (range between [0 - 255]). |
size | : The total image size or the number of pixels. |
Definition at line 4792 of file vpImageConvert.cpp.
|
static |
Convert RGB into RGBa.
Alpha component is set to vpRGBa::alpha_default.
Definition at line 3388 of file vpImageConvert.cpp.
Referenced by vpRealSense2::getColorFrame().
|
static |
Converts a RGB image to RGBa. Alpha component is set to vpRGBa::alpha_default.
Flips the image verticaly if needed. Assumes that rgba is already resized.
Definition at line 3885 of file vpImageConvert.cpp.
|
static |
Split an image from vpRGBa format to monochrome channels.
src | : source image. |
pR | : red channel. Set as NULL if not needed. |
pG | : green channel. Set as NULL if not needed. |
pB | : blue channel. Set as NULL if not needed. |
pa | : alpha channel. Set as NULL if not needed. |
Example code using split :
Definition at line 4352 of file vpImageConvert.cpp.
|
static |
Convert an image from YCrCb 4:2:2 (Y0 Cr01 Y1 Cb01 Y2 Cr23 Y3 ...) to grey format. Destination grey image memory area has to be allocated before.
Definition at line 4198 of file vpImageConvert.cpp.
|
static |
Convert an image from YCbCr 4:2:2 (Y0 Cb01 Y1 Cr01 Y2 Cb23 Y3 ...) to RGB format. Destination rgb memory area has to be allocated before.
Definition at line 4090 of file vpImageConvert.cpp.
|
static |
Convert an image from YCbCr 4:2:2 (Y0 Cb01 Y1 Cr01 Y2 Cb23 Y3...) to RGBa format. Destination rgba memory area has to be allocated before.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 4147 of file vpImageConvert.cpp.
|
static |
Convert an image from YCrCb 4:2:2 (Y0 Cr01 Y1 Cb01 Y2 Cr23 Y3 ...) to RGB format. Destination rgb memory area has to be allocated before.
Definition at line 4227 of file vpImageConvert.cpp.
|
static |
Convert an image from YCrCb 4:2:2 (Y0 Cr01 Y1 Cb01 Y2 Cr23 Y3 ...) to RGBa format. Destination rgba memory area has to be allocated before.
The alpha component of the resulting image is set to vpRGBa::alpha_default.
Definition at line 4282 of file vpImageConvert.cpp.
|
static |
Convert YUV411 into Grey yuv411 : u y1 y2 v y3 y4
Definition at line 1611 of file vpImageConvert.cpp.
|
static |
Convert YUV411 into RGB yuv411 : u y1 y2 v y3 y4
Definition at line 1742 of file vpImageConvert.cpp.
|
static |
Convert YUV411 (u y1 y2 v y3 y4) images into RGBa images. The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 1356 of file vpImageConvert.cpp.
|
static |
Convert YUV420 [Y(NxM), U(N/2xM/2), V(N/2xM/2)] image into grey image.
Definition at line 2157 of file vpImageConvert.cpp.
|
static |
Convert YUV420 [Y(NxM), U(N/2xM/2), V(N/2xM/2)] image into RGB image.
Definition at line 2028 of file vpImageConvert.cpp.
|
static |
Convert YUV420 [Y(NxM), U(N/2xM/2), V(N/2xM/2)] image into RGBa image.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 1896 of file vpImageConvert.cpp.
|
static |
Convert YUV 4:2:2 (u01 y0 v01 y1 u23 y2 v23 y3 ...) images into Grey. Destination grey memory area has to be allocated before.
Definition at line 1725 of file vpImageConvert.cpp.
|
static |
Convert YUV 4:2:2 (u01 y0 v01 y1 u23 y2 v23 y3 ...) images into RGB images. Destination rgb memory area has to be allocated before.
Definition at line 1634 of file vpImageConvert.cpp.
|
static |
Convert YUV 4:2:2 (u01 y0 v01 y1 u23 y2 v23 y3 ...) images into RGBa images. Destination rgba memory area has to be allocated before.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 1517 of file vpImageConvert.cpp.
|
static |
Convert YUV444 (u y v) image into grey image.
Definition at line 2256 of file vpImageConvert.cpp.
|
static |
Convert YUV444 (u y v) image into RGB image.
Definition at line 2213 of file vpImageConvert.cpp.
|
static |
Convert YUV444 (u y v) image into RGBa image.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 2170 of file vpImageConvert.cpp.
|
inlinestatic |
Converts a yuv pixel value in rgb format.
y | Y component of a pixel. |
u | U component of a pixel. |
v | V component of a pixel. |
r | Red component from the YUV coding format. This value is computed using:
|
g | Green component from the YUV coding format. This value is computed using:
|
b | Blue component from the YUV coding format. This value is computed using:
|
Definition at line 180 of file vpImageConvert.h.
|
static |
Convert an image from YUYV 4:2:2 (y0 u01 y1 v01 y2 u23 y3 v23 ...) to grey. Destination rgb memory area has to be allocated before.
Definition at line 1339 of file vpImageConvert.cpp.
|
static |
Convert an image from YUYV 4:2:2 (y0 u01 y1 v01 y2 u23 y3 v23 ...) to RGB24. Destination rgb memory area has to be allocated before.
Definition at line 1287 of file vpImageConvert.cpp.
|
static |
Convert an image from YUYV 4:2:2 (y0 u01 y1 v01 y2 u23 y3 v23 ...) to RGB32. Destination rgba memory area has to be allocated before.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 1232 of file vpImageConvert.cpp.
|
static |
Convert YV12 [Y(NxM), V(N/2xM/2), U(N/2xM/2)] image into RGB image.
Definition at line 2404 of file vpImageConvert.cpp.
|
static |
Convert YV12 [Y(NxM), V(N/2xM/2), U(N/2xM/2)] image into RGBa image.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 2272 of file vpImageConvert.cpp.
|
static |
Convert YV12 [Y(NxM), V(N/4xM/4), U(N/4xM/4)] image into RGB image.
Definition at line 2968 of file vpImageConvert.cpp.
|
static |
Convert YVU9 [Y(NxM), V(N/4xM/4), U(N/4xM/4)] image into RGBa image.
The alpha component of the converted image is set to vpRGBa::alpha_default.
Definition at line 2535 of file vpImageConvert.cpp.