How to find Hue and chroma values of images

15 visualizaciones (últimos 30 días)
SNEHAMOL K
SNEHAMOL K el 5 de Dic. de 2020
Editada: DGM el 4 de Nov. de 2021
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.

Respuesta aceptada

Swetha Polemoni
Swetha Polemoni el 8 de Dic. de 2020
Hi SNEHAMOL K
You can try first converting the image color from L*a*b* color space to RGB color space using "lab2rgb" and then you can convert it from RGB color space to hue, saturation(chroma), and value (HSV) color space using "rgb2hsv".
Hope this helps.

Más respuestas (1)

DGM
DGM el 4 de Nov. de 2021
Editada: DGM el 4 de Nov. de 2021
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.

Categorías

Más información sobre Modify Image Colors en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by