comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: transform a floating point into byte or integer in envi
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: transform a floating point into byte or integer in envi [message #56387] Wed, 24 October 2007 08:45
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Nuno Vila�a wrote:
> dear all,
>
> i have some raster datasets created in arcmap that were later
> converted into tiff so that they could be read by envi, which doesn't
> happen since envi doesn' display correctly these images as they appear
> all in white. these images should have a grey scale of 0 to 1. other
> visualization software such as multispec or irfan view are capable of
> reading these images correctly.
> i have been told that i should either transform these images into byte
> with a scale from 0 - 200 or either to integer with a scale of 0 - 10
> 000, but i simply have no idea of how to do it... does anyone have a
> clue andcan help me out?
> thank you!
>
> nuno
>
if you want it from 0 to 255 you can use the function bytscl()

Otherwise, it is fairly easy to do it manually.
So 0-> 0, 1-> 200 (or 10 000, whatever)
so your transformation equation would be y = 200 x + 0

so you have your image between 0 and 1, simply do
ScaledImage = image * 200


But again, this is just a visualization problem and you can display it
properly in Envi with little effort... open your image then use the
"enhance" menu.

Jean
Re: transform a floating point into byte or integer in envi [message #56392 is a reply to message #56387] Wed, 24 October 2007 01:47 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
No Message Body
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: 2-D Convolutions in IDL w/o zero-padded edges
Next Topic: Re: weighted average for label_region

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:57:05 PDT 2025

Total time taken to generate the page: 0.00569 seconds