How to find Hue and chroma values of images
13 次查看(过去 30 天)
显示 更早的评论
I have a image data set.I converted them in to L*A*B color space,How can I find hue and chroma values of this image dataset.
0 个评论
采纳的回答
更多回答(1 个)
DGM
2021-11-4
编辑:DGM
2021-11-4
If you're working in LAB and you want Hue and Chroma (i.e. the polar representations of the model you're already in) then I don't see the point in converting to HSV and calculating something unrelated.
If you want LCHab, simply convert your LAB representation into cylindrical coordinates, or simply use the cform tools in IPT.
rgbpict = imread('peppers.png');
labpict = rgb2lab(rgbpict); % you already have this
c = makecform('lab2lch');
lchpict = applycform(labpict,c);
There are other tools available on the File Exchange if you want to go straight from sRGB to LCHab and vice-versa.
0 个评论
另请参阅
类别
在 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!