How to convert an image from rgb to lab by pixel by pixel matrix???
Ältere Kommentare anzeigen
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
1 Kommentar
sixwwwwww
am 20 Okt. 2013
What do you mean by lab values? Can you please explain?
Antworten (2)
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
am 25 Okt. 2013
Matt Kindig
am 25 Okt. 2013
I can't read your text-speak. What does "it z working" mean?
pritha Das
am 25 Okt. 2013
Bearbeitet: pritha Das
am 25 Okt. 2013
Matt Kindig
am 25 Okt. 2013
I have no idea what pixel by pixel means in this context. The commands I provided above convert an RGB image to L*A*B* all at once, so every pixel is modified to the new colorspace. Both the RGB and L*A*B* images should range from 0-255.
It is not clear what it means to "plot pixel by pixel matrix". Do you just want to display the image? If so, just use image() or imshow().
pritha Das
am 26 Okt. 2013
pritha Das
am 26 Okt. 2013
pritha Das
am 26 Okt. 2013
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.
Jan
am 25 Okt. 2013
0 Stimmen
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 Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!