How to convert from RGB to L*u*v* color space ?
Show older comments
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 Comments
Mariam Sheha
on 25 Jun 2013
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
mehrnaz niazi
on 30 Oct 2018
Edited: Image Analyst
on 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);
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!