Batch mode and Results window
Posted by
Pedro J CamelloDr Pedro J Camello on
URL: http://imagej.273.s1.nabble.com/Batch-mode-and-Results-window-tp5024652.html
Hi all,
I need to open images in a folder and their matching files of multiple ROIs coordinates (several hundreds per image) to perform measurements.
A single macro works fine, but using setbatchmode(true) to make it faster, I do not get any Results window, and therefore I can“t access measurements. I have tried to place setbatchmode("show") or setbatchmode(true) at different places in the loop without success.
Is this normal? No access to Results window if setbatchmode is enabled?
My macro follows:
setBatchMode(true);
run("Set Measurements...", "mean redirect=None decimal=2");
//listaArchivos is an array containing my list of files
for (i = 0; i<listaArchivos.length;i++) {
open(carpetaROIs + File.separator + ROIs[i]); //carpetaROIs and ROIs are the folder and the list of archive for the rois
open(carpeta + File.separator + listaArchivos[i]); carpeta and listaArchivos are the folder and the list of images
roiManager("Measure");
close("ROI Manager");
close("*");
}
saveAs("Results", carpeta + File.separator + ROIs[i] + "_Histogra" + ".txt");
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html