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

Home » Public Forums » archive » Re: reading in a series of 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: reading in a series of images [message #6662 is a reply to message #6660] Wed, 31 July 1996 00:00 Go to previous message
Walid is currently offline  Walid
Messages: 9
Registered: July 1996
Junior Member
Salvador Borges wrote:
>
> I would like to read in a series of images from a file folder. the
> names of files would be serially incremented, like a01, a02 etc or
> odd/even increments like a01, a03 etc
>
> Is there an easy and efficient way to do this?
>
> Thanks,
>
> Salvador Borges
Salvador Borges wrote:
>
> I would like to read in a series of images from a file folder. the
> names of files would be serially incremented, like a01, a02 etc or
> odd/even increments like a01, a03 etc
>
> Is there an easy and efficient way to do this?
>
> Thanks,
>
> Salvador Borges
Salvador,

Here is a simple method to do this (although I'm sure there are better
ways):

;define npts, nimages as number of data points, number of images
data=intarr(npts,npts,nimages)
image=intarr(npts,npts)
for i=0,nimages-1 do begin
openr,1,"filea"+strtrim(string(i),1)
readf,1,image
close,1
data(*,*,i)=image
endfor

Hope this helps,

Walid
[Message index]
 
Read Message
Read Message
Previous Topic: changing colors
Next Topic: Re: ? - Putting text on TV output

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

Current Time: Sun Oct 12 00:27:21 PDT 2025

Total time taken to generate the page: 1.67477 seconds