Normalize (0-255) XYZ channels. Used to view the normalized colour
(unsaturated) channels.
function call:
[out_img1]=vsg('ViewXYZ',in_img1);
Arguments:
in_img1
- input image, 3
channel RGB, 1 channel greyscale or binary image which is in an XYZ
colour space. The first colour channel is the X component, second is the
Y and third is the Z colour component.
Description:
The out_img1
– an image with the same dimensions as the input image which is the
input image with values normalised to the range of {0-255} on all three
channels.
Example:
img = openimage('lake.jpg');
[out_img1]=vsg('RGBToXYZ',img);
[out_img1]=vsg('ViewXYZ',out_img1);
Notes:
For single channel
images, the single channel image is returned as is.