Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question about image()

Status
Not open for further replies.

gratings

Specifier/Regulator
Jul 22, 2006
1
When I use "image(c)", where c is a matrix containing uint8 data and ranging from 0-255, 0 is completely black, 255 completely white.

Now I use

c=uint8(ones(256).*a);
image(c)
colormap gray

I increase "a" from 0 to 255. Strangely the picture becomes completely white when "a" increases to ~50 or 60, but not 255 which I guess. Could anyone give me some hints about this?

Thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor