Re: .dat file size [message #39740] |
Wed, 09 June 2004 11:57  |
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
|
|
|