The problem of GdalRasterLayer display Image Data value between 0 and 1

May 8, 2009 at 9:49 AM

Hi , brothers!!!

Today , I got a very headache problem of display an image by using the class of  "GdalRasterLayer";

The problem is :

if my image data value is between 0- 255 .all right, There is no problem. This image can show very well  !!!

however ,  If my image data value is between 0 -1. The problem comes up! this image shown as all pixels black color!

so , this is not what i want to see.

When I use IDL to display the image with data value between 0 and 1, I can use the function of " TVSCL  " to sovle this problem!

The point is , How can I change the range of my Image data value of  0-1 to 0-255 to dislay the image exactly!

 

looking forword to your replay! 

Help!!!!!!!!!!!!!!!!!