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

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 commentaires

Mariam Sheha
Mariam Sheha le 25 Juin 2013
Hey can i have any comment about that Question??!
ahmed majeed
ahmed majeed le 26 Sep 2013
Thank you so match Ms. Sheha you helped me mutch,, Im rely dont Know how co convert it directly I will help u when i can
many thanks
Mariam Sheha
Mariam Sheha le 1 Fév 2014
Really happy that u got help through my question :), you are welcome :)
mehrnaz niazi
mehrnaz niazi le 30 Oct 2018
Modifié(e) : Image Analyst le 30 Oct 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);

Connectez-vous pour commenter.

 Réponse acceptée

Image Analyst
Image Analyst le 1 Fév 2014

0 votes

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().

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by