I have a folder containing many images. These are grouped into sets of three images where one filename ends in dsRed).tif
, another filename ends in FITC).tif
and the other filename ends in DAPI).tif
.
How can I tell ImageJ to do different stuff to each image dependent on which filename ending it has?
I have tried to set up macros to run different thresholds, e.g.:
//run("Brightness/Contrast...");
setMinAndMax(0, 20000);
close();
to the different filenames based on scripts found here: http://imagej.1557.x6.nabble.com/open-file-with-specific-partial-name-td5002910.html and here: http://rsb.info.nih.gov/ij/macros/Batch_RGB_Merge.txt but I am having trouble with formatting if else functions with my three filename endings.