Dear Ritu
You could use something like:
dir1 = getDirectory("Select Directory with files");
list = getFileList(dir1);
Dialog.create("Select files")
Dialog.addNumber("Select the first image to analyse:", 1);
Dialog.addNumber("Select the last image to analyse", list.length);
Dialog.show()
start = Dialog.getNumber();
end = Dialog.getNumber();
for (i=(start - 1); i<end; i++){
Here goes your analysis code
}
This works only when there are only image files in the directory and there are no subdirectories. Otherwise you have somehow correct for those...
Best wishes
Kees
Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aifImageJ workshops 12 and 13 December :
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif/workshops/imagej-workshops-December-2016-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of rituroych
Sent: 13 October 2016 13:46
To:
[hidden email]
Subject: Selective batch processing within a folder using macro
Dear All,
I have written a macro to process all the files in a folder.
The folder contains around 100 images, but I would like to choose a certain number of files at a time for batch processing using the macro and not the entire folder. Please suggest a method to do so.
Thanks!
Best,
Ritu.
--
View this message in context:
http://imagej.1557.x6.nabble.com/Selective-batch-processing-within-a-folder-using-macro-tp5017364.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