CVD::ColourSpace Namespace Reference


Detailed Description

Internal colourspace conversions.


Functions

void yuv411_to_rgb (const unsigned char *yuv411, int npix, unsigned char *out)
void yuv411_to_y (const unsigned char *yuv411, int npix, unsigned char *out)
void yuv411_to_rgb_y (const unsigned char *yuv411, int npix, unsigned char *outc, unsigned char *outy)
void bayer_to_grey (const unsigned char *bggr, unsigned char *grey, unsigned int width, unsigned int height)
void bayer_to_rgb (const unsigned char *bggr, unsigned char *rgb, unsigned int width, unsigned int height)
void yuv422_to_rgb (const unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height)
void yuv422_to_grey (const unsigned char *yuv, unsigned char *grey, unsigned int width, unsigned int height)
void yuv420p_to_rgb (const unsigned char *y, const unsigned char *u, const unsigned char *v, unsigned char *rgb, unsigned int width, unsigned int rowpairs)
void yuv420p_to_grey (const unsigned char *y, const unsigned char *u, const unsigned char *v, unsigned char *grey, unsigned int width, unsigned int height)
void vuy422_to_rgb (const unsigned char *yuv, unsigned char *rgb, unsigned int width, unsigned int height)
void vuy422_to_grey (const unsigned char *yuv, unsigned char *grey, unsigned int width, unsigned int height)
void yuv422_to_rgb_c (const unsigned char *yuv, unsigned char *rgb, unsigned int n)
void yuv422_to_grey_c (const unsigned char *yuv, unsigned char *grey, unsigned int n)


Function Documentation

void CVD::ColourSpace::yuv411_to_rgb ( const unsigned char *  yuv411,
int  npix,
unsigned char *  out 
)

Convert YUV 411 pixel data to RGB.

Parameters:
yuv411 The input data
npix The number of pixels
out The output data

void CVD::ColourSpace::yuv411_to_y ( const unsigned char *  yuv411,
int  npix,
unsigned char *  out 
)

Convert YUV 411 pixel data to Y only.

Parameters:
yuv411 The input data
npix The number of pixels
out The output data

void CVD::ColourSpace::yuv411_to_rgb_y ( const unsigned char *  yuv411,
int  npix,
unsigned char *  outc,
unsigned char *  outy 
)

Convert YUV 411 pixel data to Y and RGB.

Parameters:
yuv411 The input data
npix The number of pixels
outc colour output data
outy luma output data

void CVD::ColourSpace::bayer_to_grey ( const unsigned char *  bggr,
unsigned char *  grey,
unsigned int  width,
unsigned int  height 
)

Convert Bayer pattern of the form ??? to greyscale data.

Parameters:
bggr The input data
grey The output data
width The width of the image
height The height of the image

void CVD::ColourSpace::bayer_to_rgb ( const unsigned char *  bggr,
unsigned char *  rgb,
unsigned int  width,
unsigned int  height 
)

Convert Bayer pattern of the form ??? to rgb444 data.

Parameters:
bggr The input data
grey The output data
width The width of the image
height The height of the image

void CVD::ColourSpace::yuv422_to_rgb ( const unsigned char *  yuv,
unsigned char *  rgb,
unsigned int  width,
unsigned int  height 
)

Convert yuv422 to rgb444.

Parameters:
yuv The yuv422 data: yuyvyuyv....
rgb The output data
width The width of the image
height The height of the image

void CVD::ColourSpace::yuv422_to_grey ( const unsigned char *  yuv,
unsigned char *  grey,
unsigned int  width,
unsigned int  height 
)

Convert yuv422 to grey.

Parameters:
yuv The yuv422 data: yuyvyuyv....
grey The output data
width The width of the image
height The height of the image

void CVD::ColourSpace::yuv420p_to_rgb ( const unsigned char *  y,
const unsigned char *  u,
const unsigned char *  v,
unsigned char *  rgb,
unsigned int  width,
unsigned int  rowpairs 
)

Convert yuv420 planar to rgb444.

Parameters:
y The y plane: one byte per pixel
u The u plane: one byte per 2 pixel square
v The v plane: one byte per 2 pixel square
rgb The output data
width The width of the image
rowpairs The number of rows pairs (i.e., height/2) in the image

void CVD::ColourSpace::yuv420p_to_grey ( const unsigned char *  y,
const unsigned char *  u,
const unsigned char *  v,
unsigned char *  grey,
unsigned int  width,
unsigned int  height 
)

Convert yuv420 planar to grey.

Parameters:
y The y plane: one byte per pixel
u The u plane: one byte per 2 pixel square
v The v plane: one byte per 2 pixel square
grey The output data
width The width of the image
height The height of the image

void CVD::ColourSpace::vuy422_to_rgb ( const unsigned char *  yuv,
unsigned char *  rgb,
unsigned int  width,
unsigned int  height 
)

Convert vuy422 to rgb444.

Parameters:
yuv The vuy422 data: uyvyuyvy....
rgb The output data
width The width of the image
height The height of the image

void CVD::ColourSpace::vuy422_to_grey ( const unsigned char *  yuv,
unsigned char *  grey,
unsigned int  width,
unsigned int  height 
)

Convert yuv422 to grey.

Parameters:
yuv The vuy422 data: uyvyuyvy....
grey The output data
width The width of the image
height The height of the image


Generated on Wed Feb 18 10:23:11 2009 for CVD by  doxygen 1.5.3