Imaging Porcessing Toolbox
Imaging Porcessing Toolbox
(OP)
Hi,
After I create a matrix and try to display it with imshow, only the points with gray level 0 and 256 are displayed correctly. Other points are all displayed as white or balck.But when I use pixval to check the gray level for a particular point, the gray level value is correct. I don't know why. Pl. help. (The problem is trivial but I'm a newcomer)
Thanks a lot
Qiuqiu
After I create a matrix and try to display it with imshow, only the points with gray level 0 and 256 are displayed correctly. Other points are all displayed as white or balck.But when I use pixval to check the gray level for a particular point, the gray level value is correct. I don't know why. Pl. help. (The problem is trivial but I'm a newcomer)
Thanks a lot
Qiuqiu





RE: Imaging Porcessing Toolbox
Did you enter a colormap as a second argument?
Use: imshow(X,[]) % X is your matrix
to let the function choose it for you, or: imshow(X,gray(256))
Joe Sababa
BSTeX - Equation viewer for Matlab
http://www.geocities.com/bstex2001/
Joe
BSTeX- Equation viewer for Matlab
http://www.geocities.com/bstex2001