Filter löschen
Filter löschen

How to convert from RGB to L*u*v* color space ?

13 Ansichten (letzte 30 Tage)
Mariam Sheha
Mariam Sheha am 25 Jun. 2013
Bearbeitet: Image Analyst am 30 Okt. 2018
Hi every body;
To convert an image an RGB image to L*u*V* color space i convert image to xyz then to l*u*v*....using that code:
>> cform = makecform('srgb2xyz');
>> xyz_img = applycform(img,cform);
>> cform = makecform('xyz2uvl');
>> luv_img = applycform(img,cform);
I wana to ask if their is any directly change from rgb to l*u*v*?
Thank You..
  4 Kommentare
Mariam Sheha
Mariam Sheha am 1 Feb. 2014
Really happy that u got help through my question :), you are welcome :)
mehrnaz niazi
mehrnaz niazi am 30 Okt. 2018
Bearbeitet: Image Analyst am 30 Okt. 2018
Hi,
Actually, I am not sure if there is any direct converter to convert an RGB image to a UVL color model, but you can simplify this as below:
I = rgb2xyz(I);
cform = makecform('xyz2uvl');
I = applycform(I,cform);

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 1 Feb. 2014
It's not in the list of available transforms so no, there is no way to go from RGB to LUV directly in one call to makecform().

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by