logo       

Re: image order: msg#00154

java.imagej

Subject: Re: image order

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



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise