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

Home » Public Forums » archive » integer to float?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
integer to float? [message #12196] Fri, 10 July 1998 00:00 Go to previous message
Jonas is currently offline  Jonas
Messages: 23
Registered: May 1998
Junior Member
Hi all you IDL'ers
Instead of scanning the manual, I'll present a question here...

I have an image file from our Siemens Magnetom scanner.
the format is stored as bigendian and is originally in 32-bit float format.
Since I'm new at this I would like some guidance in retrieving the pixel
information in a smooth way. I have written some code like this:
Read image information to vector as 32-bit integer
perform byte-swap
save in new file as byte
read new file as 32-bit float and sort the data to a complax array.

It works fine, but I would prefer to convert from integer to float without
having to save to a new file. How is that done?

sincerely
Jonas
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Creating Variables in Programs
Next Topic: Imagemap?

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

Current Time: Thu Oct 09 22:13:17 PDT 2025

Total time taken to generate the page: 0.64088 seconds