[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Byte to Real conversion
- Subject: Re: Byte to Real conversion
- From: David Foster <foster(at)bial1.ucsd.edu>
- Date: Fri, 19 Feb 1999 13:03:11 -0800
- Newsgroups: comp.lang.idl-pvwave
- Organization: Univ. of Calif San Diego
- References: <36CCB875.BA77B780@131.170.8.11>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:13681
Michael A. Wirth wrote:
>
> Hi,
>
> I am reading some data in from an Magnetic Resonance image which stores
> information about the image in
> a 14336 byte header. I want to extract some of the data from this header
> and am having a problem
> with converting data to integers and reals. The integers are 2-bytes and
> the reals 4-bytes in length. How does
> one convert 4 bytes into a real number?
>
> many thanks,
>
> Michael
Michael -
For some reason our nameserver can't find your host, so my email
bounced. If you want the C code for a MR_HEADER program, you can
get it from:
ftp://bial1.ucsd.edu/pub/mr_header.tar.gz
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~