Function:Rgb2ycbcr

From CUVI Wiki
Revision as of 16:10, 13 June 2014 by Ghazanfar (talk | contribs) (Created page with "__NOTOC__ Converts input RGB image to YCbCr color space. ===Function=== {| |style="font-size:150%;"| <syntaxhighlight lang="cpp"> CuviStatus rgb2ycbcr(const CuviImage& src, ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Converts input RGB image to YCbCr color space.

Function

CuviStatus rgb2ycbcr(const CuviImage& src,
                     CuviImage& dst,
                     const CuviStream& stream = CuviStream());


Parameters

Name Type Description
src const CuviImage& Input RGB image
dst CuviImage& Output YCbCr image
stream const CuviStream& GPU stream ID for execution


Image Type Support

Input Output
8uC3 8uC3
16uC3 16uC3
32fC3 32fC3

Sample

Example

CuviImage input = cuvi::io::loadImage(path,CUVI_LOAD_IMAGE_COLOR), output;

//Convert input RGB image to YCbCr
cuvi::colorOperations::rgb2ycbcr(input , output);