image order

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

image order

christophe leterrier
I was wondeing how ImageJ (or Java I think) handles file names. Usually
my files are named in a way that the priority is from left to right for
the alphabetical order, ie 051121.tif is before 051221 and after 051120
(using reversed YYMMDD dates as exemples). It works well with windows,
but with the ImageJ "Import Image Sequence" command the priority for
alphabetical order seems reversed for the order of the slices in the
obtained stack... Can somebody tell me how are filenames sorted in ImageJ ?

Close to this subject, is there a way or a macro to sort a stack based
on the labels of the slices ?

Thanks

Christophe

Subsidiary question : how are filenames and subsequent opened images
sorted with multiple images opening in photoshop (prior to CS2) ? That's
neither forward nor backward (considering thefilename string)
alphabetical order...


--
-- Christophe LETERRIER -------------------

Etudiant en thèse                
Equipe Dynamique des Récepteurs Neuronaux
Laboratoire de Neurobiologie
ESPCI-CNRS UMR 7637
10, rue Vauquelin 75231 Paris Cedex 05

Tel 01 40 79 51 84
Fax 01 40 79 47 67
[hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: image order

Wayne Rasband
> I was wondeing how ImageJ (or Java I think) handles file
> names. Usually my files are named in a way that the priority
> is from left to right for the alphabetical order, ie
> 051121.tif is before 051221 and after 051120 (using reversed
> YYMMDD dates as exemples). It works well with windows, but
> with the ImageJ "Import Image Sequence" command the priority
> for alphabetical order seems reversed for the order of the
> slices in the obtained stack... Can somebody tell me how are
> filenames sorted in ImageJ ?

The File>Import>Image Sequence command sorts files names into
alphanumeric order so the above three files would be stored in the
stack in this order:

     051120.tif
     051121.tif
     051221.tif

The exception is DICOM files, which are sorted by the value of the
image number tag.

> Close to this subject, is there a way or a macro to sort a
> stack based on the labels of the slices ?

I am not aware of a plugin or macro that does this.

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: image order

Robert Dougherty
OK, my Stack Sorter plugin has been updated to do that!
http://www.optinav.com/ImageJplugins/Stack-Sorter.htm

Bob

Robert P. Dougherty, Ph.D.
President, OptiNav, Inc.
Phone (425) 467-1118
Fax (425) 467-1119
www.optinav.com
 
> > Close to this subject, is there a way or a macro to sort a
> > stack based on the labels of the slices ?
>
> I am not aware of a plugin or macro that does this.
>
> -wayne
Reply | Threaded
Open this post in threaded view
|

Re: image order

Robert Dougherty
Now it also can sort the slices by mean value in the ROI.  There is an
additonal button to label the slices in order so you can track the results
of sorting.

Bob

>
> OK, my Stack Sorter plugin has been updated to do that!
> http://www.optinav.com/ImageJplugins/Stack-Sorter.htm
>
> Bob
>
> Robert P. Dougherty, Ph.D.
> President, OptiNav, Inc.
> Phone (425) 467-1118
> Fax (425) 467-1119
> www.optinav.com
>
> > > Close to this subject, is there a way or a macro to sort a
> > > stack based on the labels of the slices ?
> >
> > I am not aware of a plugin or macro that does this.
> >
> > -wayne