Hi Benito,
In ImageJ macro, you can used the command below to add leading zeros for your number (n):
IJ.pad(n, length)
Example Macro:
n = 1;
print(n);
m = IJ.pad(n, 3);
print(m);
Best Regards,
John
________________________________________
From: ImageJ Interest Group [
[hidden email]] On Behalf Of BenitoRT [
[hidden email]]
Sent: Thursday, May 22, 2014 1:54 PM
To:
[hidden email]
Subject: Open Next is not opening the next image in a directory
Hello.
This might be a beginner question but I need help.
I have a directory full of images named with ascending numbers (e.g. 1, 2,
3, ... , n).
This numbers were assigned using a macro that I created which names the
images this way after many procesing steps on the parent images. The problem
is that when I use the "Open Next" command from image 1, the image 10 is
opened instead of image 2.
Changing the names manually I found that naming the images 001, 002, 003,
... , 010, 011, and so on, the problem is solved, although I can't find a
way in which the images are saved with this name format automatically.
Anyone have a solution to this? maybe another name format or a way to name
the images this way?
Thank you very much in advance and sorry if my english is not clear.
Benito Recio
--
View this message in context:
http://imagej.1557.x6.nabble.com/Open-Next-is-not-opening-the-next-image-in-a-directory-tp5007843.htmlSent from the ImageJ mailing list archive at Nabble.com.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html