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


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

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

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


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!