Re: sorting bug in ij.plugin.FolderOpener?
Posted by Albert Cardona on Mar 23, 2007; 10:50pm
URL: http://imagej.273.s1.nabble.com/sorting-bug-in-ij-plugin-FolderOpener-tp3699965p3699968.html
Wayne,
> will be correctly sorted in numeric order. This works because ImageJ
> prepends zeros only after removing all non-numeric characters. What it
> can't handle is file names that are not of equal length and that also
> contain more than one number. This is because the digits from all the
> numbers in the name are combined to form a single number that is sorted.
It would help if there was some automagic on: when more than numeric
chunk is detected in any of the file names, a Choice could be added to
the dialog which would ask for sorting by first numbers or last numbers.
In TrakEM2, for importing sequences as montages I have some such magic
but more manual: one has to specify, with 'd' characters, which part of
the name string is relevant to numbering.
> The sortFileList() method in the FolderOpener class is public in
> ImageJ 1.38.
Thank you!
Albert