Re: Selective batch processing within a folder using macro
Posted by
ved sharma on
Oct 13, 2016; 8:50pm
URL: http://imagej.273.s1.nabble.com/Selective-batch-processing-within-a-folder-using-macro-tp5017364p5017370.html
Dear Ritu,
You can try something like this:
//
start = 11; end = 20;
for(i=0, count=0; i<filenames.length; i++, count++) {
if(count >= start && count <= end) {
process file... (your macro code)
}
}
//
An alternative might be to use the regular expressions (regex) matching, with an if statement: if(matches(filename, regex)). But this will require you to see (and construct) a pattern to the files you want to select. BTW, you can use regex based selection of files in the ImageJ's in-built batch processor (Process > Batch > Macro...), using "File name contains" option.
Hope this helps,
Ved
_________________________________
Ved Sharma, PhD
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Bronx, New York
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html