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

2 Ansichten (letzte 30 Tage)
pritha Das
pritha Das am 20 Okt. 2013
Kommentiert: Image Analyst am 26 Okt. 2013
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

Antworten (2)

Matt Kindig
Matt Kindig am 25 Okt. 2013
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 Kommentare
pritha Das
pritha Das am 26 Okt. 2013
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 am 26 Okt. 2013
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.

Melden Sie sich an, um zu kommentieren.


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

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by