Converts RGB image to greyscale
function call:
[out_img1]=vsg('GreyScaler',in_img1);
Arguments:
in_img1
input image, 3 channel
Description:
out_img1 – An image which has dimensions the same as the input image. The output values are taken as the average value across all three colour planes.
Example:
img = openimage('hartley.jpg');
h=figure;image(uint8(img));set(h,'Name','Input
Image');
[out_img1]=vsg('GreyScaler',img);
h=figure;image(uint8(out_img1));set(h,'Name','GreyScaler
Image');