MATLAB Answers

Mariam Sheha

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

Asked by Mariam Sheha
on 25 Jun 2013
Latest activity Answered by Image Analyst
on 1 Feb 2014

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

  3 Comments

Mariam Sheha
on 25 Jun 2013

Hey can i have any comment about that Question??!

ahmed majeed
on 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
on 1 Feb 2014

Really happy that u got help through my question :), you are welcome :)

1 Answer

Answer by Image Analyst
on 1 Feb 2014
 Accepted answer

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

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today