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

Home » Public Forums » archive » Conversion floating point to byte or integer
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
Conversion floating point to byte or integer [message #56326] Wed, 10 October 2007 16:32
beardown911 is currently offline  beardown911
Messages: 21
Registered: March 2007
Junior Member
Hello Gurus,

I've been trying to write a code to correct imagery data. Original
imagery data format is byte format.
Steps for the processing includes reading the original data,
subtracting dark current, and multiplying calibration coefficients and
saving the results. The two values; dark current and calibration
coefficients are given by arrays with floationg point format.
The code seemes to work without any problem. But in the resulting
image saved in binary format , numbers higher than 255 store only
remants of what is subtracted from 256. The reason I want to convert
to byte is to save some disk space. In the image saved as floating
point format pixel values look ok.
Could you give some advice what part of program I have to look at? and
what causes this problem?

Thank you in advance,
Kim
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Memory handling in IDL VM
Next Topic: Re: envi_evf_define_add_record problem (possible output format/rounding issue)

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

Current Time: Fri Oct 10 20:07:12 PDT 2025

Total time taken to generate the page: 0.48405 seconds