How to convert a rgb image to CLElab color space?

조회 수: 1 (최근 30일)
Krishna Chaitanya
Krishna Chaitanya 2020년 1월 24일
댓글: Krishna Chaitanya 2020년 1월 27일
I need to convert a rgb image to CLElab color space to extract some features.I came across rgb2lab() function which converts rgb image to CIE 1976 L*a*b*.
Is the CIE 1976 L*a*b* same as CLElab color space??I mean is that what i need?
If not, please help me how to convert RGB to CLElab colorspace.
Thank you.

채택된 답변

Guillaume
Guillaume 2020년 1월 24일
I've never heard of CLElab and a quick search doesn't find anything related to colour spaces, so I think you can safely assume that you're looking for CIE Lab, which is commonly just called Lab (or L*a*b*).
So, yes, rgb2lab is the correct function.
Normally you convert to a colour space because it has the properties you need so you should know whether L*a*b* is the actual colour space you want.
Note that RGB is device dependent while L*a*b* isn't, so conversion may not be just as simple as just calling rgb2lab.
  댓글 수: 3
Guillaume
Guillaume 2020년 1월 27일
rgb2lab does work and it is probably what you're meant to use.
The point I was trying to make is that the RGB colour space is device dependant, a RGB image on one computer may look different on another (red may look more pink for example). Lab is device independent (iit should look the same everywhere), so when converting between one and the other you should take into account the properties of the rendering device (see options of rgb2lab).However, lots of people ignore that (unfortunately).
Krishna Chaitanya
Krishna Chaitanya 2020년 1월 27일
Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by