ViewLAB

 

function call:

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

 

Arguments:

in_img1 - input image, 3 channel RGB, 1 channel greyscale or binary image which is in a LAB colour space. The first colour channel is the luminance, second is “A” and third is the “B” colour channels.

 

Description:

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 = imread('lake.jpg');

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

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

h=figure;imagesc((out_img1(:,:,1)));colormap(gray);set(h,'Name','ViewLAB_L');

h=figure;imagesc((out_img1(:,:,2)));colormap(gray);set(h,'Name','ViewLAB_A');

 

Notes:

For single channel images, the single channel image is returned as is.

Home       Functions       Back