How to convert RGB to CIE Lab color space?
13 ビュー (過去 30 日間)
古いコメントを表示
Sabarinathan Vadivelu
2012 年 9 月 7 日
コメント済み: Image Analyst
2019 年 7 月 10 日
How to convert RGB to CIE Lab color space?
0 件のコメント
採用された回答
Image Analyst
2012 年 9 月 7 日
Convert the image to L*a*b* color space using makecform and applycform.
colorTransform = makecform('srgb2lab');
lab = applycform(rgbImage, colorTransform);
Here's a full demo here: http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html
7 件のコメント
Image Analyst
2017 年 1 月 4 日
zee, you can also use rgb2lab(). But, what output are you expecting? You get an image. And to see that image you can use imshow(), or you can just look at its values in the variable editor in the workspace. But no output will get "shown" unless you do one of those two things. Otherwise all you get is a new variable.
If you want to see the 3-D color gamut, you can use colorcloud() (R2016b and later).
その他の回答 (3 件)
Deepak Panda
2015 年 10 月 13 日
How can I transfer rgb to Lab color space with luminance [0 100], a [-86.18 98.23] and b [-107.86 94.47]
5 件のコメント
Kondal Rao J
2017 年 6 月 16 日
If you have higher version than 2014....just rgb2lab is sufficient to convert the image to lab color space
Yoon ThiriZaw
2019 年 6 月 14 日
Can we calculate rgb to lab without matlab code using hand calculation?
3 件のコメント
Image Analyst
2019 年 6 月 14 日
Try here: easyrgb.com
First go from RGB to XYZ, then XYZ to LAB.
Or you could try Bruce Lindbloom's site
The above are just images so you can't click on them. But click on the link and go to the site and click on the formula you want and it will be there.
Just be aware that your LAB values will NOT be the same as what you get from a spectrophotometer, unless you do a calibration.
kasthuri c
2019 年 7 月 10 日
how to find the values of L paramete a parameter b parameter in Lab conversion method.
1 件のコメント
Image Analyst
2019 年 7 月 10 日
labImage = rgb2lab(rgbImage);
LImage = labImage(:, :, 1);
aImage = labImage(:, :, 2);
bImage = labImage(:, :, 3);
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!