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 #39760 is a reply to message #39758] Wed, 09 June 2004 02:14 Go to previous message
mwvogel is currently offline  mwvogel
Messages: 9
Registered: February 2003
Junior Member
My 2 cents (the site documentation on this code is pretty clear IMHO) :

; first a few comments
volume = BytArr(80,100,50) ; make 3D volume of images with
dimension 80x100 pixels, of type BYTE
FOR j=0,49 DO BEGIN ; do for each 'layer'
image = Read_Tiff(sortedFiles[j]) ; read the image :-)
volume[0, 0, j] = image ; store image at 'layer'
indexed with j, note that this is a trick, as explained on the site
ENDFOR

Now for a set of 132 images (all identical in size !, and of type BYTE) with
have dimensions 123 x 231, you would do
volume = BytArr(123,231,132) ; make 3D volume of images with
dimension 123x231 pixels
FOR j=0,131 DO BEGIN ;
image = Read_Tiff(sortedFiles[j]) ;
volume[0, 0, j] = image ;
ENDFOR

Now to ease your search for the right dimensions, you could do
HELP, Read_Tiff(sortedFiles[0]) ; shows [X,Y] dimensions of image

You did ask for something like this, right ?


"Aleks" <siliconcube@yahoo.com> schreef in bericht
news:79140897.0406082205.78b69476@posting.google.com...
> Hi,
> I'm very new to IDL. I was on Mr. Fanning's website and trying to
> figure out the code. This is the website for 3D imaging (exactly what
> I'm required to do)
> http://www.dfanning.com/graphics_tips/mesh.html
>
> 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? I have winXP and I have
> been battling this for nearly 3 hours (and i know this isn't even the
> IDL problem =/) Any help would be apreciated.
[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 17:28:43 PDT 2025

Total time taken to generate the page: 0.47642 seconds