How to convert an image from rgb to lab by pixel by pixel matrix???

조회 수: 2 (최근 30일)
pritha Das
pritha Das 2013년 10월 20일
댓글: Image Analyst 2013년 10월 26일
like i have image...i have to read it in matlab...then if i want to change the rgb values of the image to lab values...then what will b its steps.... i mean L* A* B* values

답변 (2개)

Matt Kindig
Matt Kindig 2013년 10월 25일
You can convert rgb to L*A*B colorspace using the makecform() and applycform() functions. From the documentation:
cform = makecform('srgb2lab');
lab_IMG = applycform(IMG,cform);
  댓글 수: 8
pritha Das
pritha Das 2013년 10월 26일
look what u have provided it is working...it directly converts a rgb image to its L*a*b color space value... bt if want to the same thing in matrix form then what will b the coding
Image Analyst
Image Analyst 2013년 10월 26일
Matt already answered this. See his last comment. There is no difference between an image and a matrix, if that is what you are wondering.

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


Jan
Jan 2013년 10월 25일
This is a perfect question for an internet research: Asking e.g. Google for "Matlab rgb lab" and you will find e.g.:

카테고리

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