CIE L*a*b* value
1 view (last 30 days)
Show older comments
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;
0 Comments
Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!