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

Home » Public Forums » archive » Re: .dat file size
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: .dat file size [message #39740] Wed, 09 June 2004 11:57 Go to previous message
siliconcube is currently offline  siliconcube
Messages: 11
Registered: June 2004
Junior Member
Wow, thank you all very much for such quick and thorough replies, I
really apreciate it. I will try to help out to the rest of the board
with whatever little knoweldge I have of this program =).

thank you
Aleks
PS. Dr. Fanning, great book, great examples (publish more on image
processing =)
Aleks
Ben Tupper <btupper@bigelow.org> wrote in message news:<2iog3lFp4iu4U1@uni-berlin.de>...
> Aleks wrote:
>
>>
>> this is the part of the code i don't quiet understand
>>
>> volume = BytArr(80,100,50)
>> FOR j=0,49 DO BEGIN
>>
>> I know the 50 comes from the fact that there are 50 different images
>> so we are going to stack them(I have 81 in my own test project). Now
>> the 80 and a 100 comes from some other place and I know that is the
>> size of the array ie its a 80x100 array. I have a test_01.tif file how
>> would I figure out the size of the array?
>
> Hello,
>
> I think you are asking how to determine the size of the image in the
> tiff file(s). You can use the QUERY_**** routines to get basic
> information regarding the image before you read it into an IDL variable.
>
> Something like this should work if your slices are stored in separate
> files (you can easily modify this for multi-tiff format.)
>
>
> nImages = n_elements(file)
>
> ok = QUERY_TIFF(file[0], info)
>
> If ok Then Begin
>
> volume = BytArr([info.dimensions, nImages], /noZero)
>
> for i = 0, nimages-1 Do $
> Volume[*,*,i] = READ_IMAGE(file[i])
>
> EndIf
>
>
>
> Ben
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: do dlms work in vm?
Next Topic: common blocks

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

Current Time: Fri Oct 10 08:33:37 PDT 2025

Total time taken to generate the page: 1.04214 seconds