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

조회 수: 11 (최근 30일)
Mariam Sheha
Mariam Sheha 2013년 6월 25일
편집: Image Analyst 2018년 10월 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
Mariam Sheha
Mariam Sheha 2014년 2월 1일
Really happy that u got help through my question :), you are welcome :)
mehrnaz niazi
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
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개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by