Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Jul 22, 2006
Messages
1
Location
GB
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

Back
Top