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

Home » Public Forums » archive » Importing Binary Images
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Importing Binary Images [message #29040 is a reply to message #29002] Tue, 29 January 2002 10:09 Go to previous messageGo to previous message
Martin Downing is currently offline  Martin Downing
Messages: 136
Registered: September 1998
Senior Member
>> If my image is indeed not byte, do I do something different, e.g.
>> -rw-r--r-- 1 robs robs 12744004 Jan 17 14:38 gom15dd.dat
>> that value divided by (1561x2041) = 4 ?
>
> Umm, BYTE = 1 byte, INT = 2 bytes, LONG = 4 bytes (ignoring
> distinction between unsigned and signed). So, looks like you want a
> LONARR, not an INTARR.

As I said previously, once you have established that you have 4 bytes per
pixel (and no remainder, then your image could be of type LONG, ULONG or
FLOAT. So just try loading each of them in 1561x2041 (and try reforming to
2041x1561).
Easy test is: load as LONG. If it looks fairly good but has half the image
highlighted, then you have a ULONG type, if the image looks like a snow
storm then you have (a) an image of a snow storm (b) a float image

Martin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: In case someone has trouble including export.h
Next Topic: Question again :)

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

Current Time: Fri Oct 10 02:26:22 PDT 2025

Total time taken to generate the page: 0.40784 seconds