CMYToRGB

Create an image from individual CMY (Cyan, Magenta, Yellow) planes.

 

function call:

[out_img1]=vsg('CMYToRGB',in_img1);

 

Arguments:

in_img1 - input image, 3 channel RGB, 1 channel greyscale or binary image which is in CMY colour space. The first colour channel should be cyan, second is magenta and third yellow.

 

Description:

out_img1 – an image with the same dimensions as the input image which has been transformed back in to an RGB colour space.

 

Example:

img = openimage('lake.jpg');

[out_img1]=vsg('RGBToCMY',img);

[out_img1]=vsg('CMYToRGB',out_img1);

 

Notes:

For single channel images, WHITE-in_img1 is returned.

Home       Functions       Back