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

New to MATLAB?

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

Asked by Mariam Sheha

Mariam Sheha (view profile)

on 25 Jun 2013
Latest activity Answered by Image Analyst

Image Analyst (view profile)

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

Mariam Sheha (view profile)

on 25 Jun 2013

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

ahmed majeed

ahmed majeed (view profile)

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

Mariam Sheha (view profile)

on 1 Feb 2014

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

Mariam Sheha

Mariam Sheha (view profile)

1 Answer

Answer by Image Analyst

Image Analyst (view profile)

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

Image Analyst

Image Analyst (view profile)

Contact us