when i am using imshow(A,G) , i got Undefined function or variable 'G'. why so ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i am using imshow(A,G), where A represent my image file matrix and G is the no. of intensity level used to display it as i read this in some book... but on running this function i am getting this answer Undefined function or variable 'G'. why so ?
0 Kommentare
Antworten (1)
Image Analyst
am 4 Okt. 2013
G would be a colormap - a pseudocolor look up table for yout indexed image. You did not set it to anything before you called imshow(), so why did you put it in there.? Replace it with [] and see if that works for you.
2 Kommentare
Image Analyst
am 4 Okt. 2013
You can use imshow(grayImage, [0 255]) if you want, or imshow(indexedImage, gray(256)) also. Or just define G yourself as a 256 by 3 array of numbers in the range 0-1, like
G = gray(256);
Siehe auch
Kategorien
Mehr zu Logical 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!