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

Home » Public Forums » archive » Re: Process series of image files?
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: Process series of image files? [message #53198] Thu, 29 March 2007 14:46 Go to previous message
beardown911 is currently offline  beardown911
Messages: 21
Registered: March 2007
Junior Member
On Mar 29, 11:52 am, David Fanning <n...@dfanning.com> wrote:
> David Fanning writes:
>> ; Get all the input TIFF files in directory.
>> files = File_Search('*.tif', Count=count)
>
>> ; Process each file somehow...
>> FOR j=0,count-1 DO BEGIN
>> something, something, something
>
>> ; Write the file out with a changed name.
>> dir = File_DirName(file, /Mark_Directory)
>> basename = File_BaseName(file, '.tif')
>> outfile = dir + basename +'.processed.tif'
>> Write_Tiff, outfile, processedImage
>> ENDFOR
>
> Whoops! I better read the file in there somewhere or
> you will REALLY get confused. :-)
>
> FOR j=0,count-1 DO BEGIN
> image = Read_Tiff(file[j])
>
> do something, something, something
>
> ; Write the file out with a changed name.
> dir = File_DirName(file, /Mark_Directory)
> basename = File_BaseName(file, '.tif')
> outfile = dir + basename +'.processed.tif'
> Write_Tiff, outfile, processedImage
> ENDFOR
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

David,

Thank you so much.
I haven't tried yet though, but really appreciate your kind help.

Have a nice day,
Phil
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: 14 bit image in false color
Next Topic: Re: We have file_lines for lines in IDL. What about file_rows?

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

Current Time: Fri Oct 10 12:57:56 PDT 2025

Total time taken to generate the page: 0.96073 seconds