Posted by
Joel Sheffield on
Jan 12, 2007; 5:18pm
URL: http://imagej.273.s1.nabble.com/Re-Renaming-files-1-99-tp3700601p3700608.html
Dear Grant,
Here's a real kludge that will only work if your files were generated
in sequential order.
It is possible to use the old DOS "DIR" command to generate a list of
files that are sorted by time/date, either by "created", "modified"
or by "accessed", and redirect this to a file. You can then use the
ImageJ List Opener plugin to open the list.
Assuming that you are running a windows machine:
1. Start>Run>CMD
2. DIR drive:/directory /OD >>drive:/directory/listfile.txt
3. In ImageJ, Plugins>List Opener
for slightly more information about the DOS DIR command, type DIR/?
in the CMD window.
This will not work if, as in the Leica SP1, all files are saved at
the same time. On the other hand, you may be lucky.
Date sent: Wed, 10 Jan 2007 11:46:08 -0600
Send reply to: ImageJ Interest Group <
[hidden email]>
From: Jeff Hardin <
[hidden email]>
Subject: Re: Renaming files 1-99
To:
[hidden email]
> Dear Grant,
>
> I had to write a plugin for this for Perkin-Elmer confocal stack
> files. There's no other way I could figure out how to do this. I
> should release this on the ImageJ web site, but need to clean it up
> and comment the code. It involves (a) knowing your naming structure;
> and (b) adding "0"s to pad the file name. The problem is that where
> these zeroes have to go depends on the naming structure, so there is
> no universal renamer that can realistically work.
>
> Hope that helps...
>
> Cheers,
>
> Jeff
> ----------------------------------------------
> Jeff Hardin
> Professor, Department of Zoology
> Director, Biology Core Curriculum
> University of Wisconsin
> 1117 W. Johnson St.
> Madison, WI 53706
> voice: (608) 262-9634
> fax: (608) 262-7319
> email:
[hidden email]
>
>
> On Jan 4, 2007, at 11:00 PM, IMAGEJ automatic digest system wrote:
>
> > Date: Thu, 4 Jan 2007 12:38:15 -0800
> > From: "McAuley, Grant (LLU)" <
[hidden email]>
> > Subject: Raw Image Stacks: Image Ordering/Reordering
> >
> > Sorry if this has been asked before (searched list archives - maybe
> > not right combination of words?).
> >
> > I need to import stacks of raw images using File->Import->Raw and
> > selecting 'Open All Files in Folder'. The images have filenames
> > that contain letters and numbers: zz-1, zz-2, ... , zz-10,
> > zz-11, ..., zz-48.
> >
> > When the stack gets created the order becomes: zz-1, zz-10,
> > zz-11, ... , zz-2, zz-21, ... instead of what I want: zz-1,
> > zz-2, ..., zz-10, zz-11, ...
> >
> > 1) Can I tell ImageJ to do a numeric instead of alpha sort on the
> > filename numbers when the stack is created?
> > 2) If not, is there a better way to resort the stack than the
> > 'Stack Sorter' plugin (nice, but tedious for 48 images/stack)?
--
Joel B. Sheffield, Ph.D.
Biology Department, Temple University
1900 North 12th Street
Philadelphia, PA 19122
[hidden email]
(215) 204 8839, fax (215) 204 0486
http://astro.temple.edu/~jbs