How to convert from RGB to L*u*v* color space ?
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
mehrnaz niazi
2018-10-30
编辑:Image Analyst
2018-10-30
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);
采纳的回答
Image Analyst
2014-2-1
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!