Extract the XYZ colour planes.
function call:
[out_img1]=vsg('RGBToXYZ',in_img1);
Arguments:
in_img1
- input image, 3
channel RGB, 1 channel greyscale or binary image.
Description:
out_img1
– an image with the same dimensions as the input image, which has been
transformed into an XYZ colour space. The first colour channel is the X
component, second is the Y and third is the Z colour component.
Example:
img = openimage('lake.jpg');
[out_img1]=vsg('RGBToXYZ',img);
Notes:
For single channel
images, the single channel image is returned as is.