CIE L*a*b* value

1 view (last 30 days)
ellanne
ellanne on 16 Mar 2012
Hi,
i tried use below code to get value of CIE LAB from RGB image. However the result show that the value exceed the limit. As i know for L component range from 0-100, A from -120 to 120 and B from -120 to 120. But from the makecform conversion, the L*a*b* value of the image is more than the range. Please advice anything wrong with the conversion. Thanks a Lot!
clear all,close all;
filename = uigetfile('*.jpg','select jpeg file'); grayImage =imread(filename);
I = imresize(grayImage, [256 356]);
labTransformation = makecform('srgb2lab'); labI = applycform(I,labTransformation);
figure,imshow(labI) impixelinfo;

Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!