Extract the HSI colour planes.
function call:
[out_img1]=vsg('RGBToHSI',in_img1);
Arguments:
in_img1 - input
image, 3 channel RGB, 1 channel greyscale or binary image.
Description:
Hue-Saturation-Intensity (HIS) colour representation from RGB colour
plane.
out_img1
– an image with the same dimensions as the input image, which has been
transformed into a HSI colour space. The first colour channel is the
hue, second is saturation and third intensity.
Example:
img = imread('lake.jpg');
[out_img1]=vsg('RGBToHSI',img);