// This macro batch processes a folder of images, // measuring the RGB values separately and with the // option of specifying an ROI for all of the processed // images. The optional ROIs should have the same name // as the corresponding image and an ".roi" extension. // Press Esc to abort. requires("1.33n"); dir = getDirectory("Choose a Directory "); list = getFileList(dir); run("Set Measurements...", " mean display redirect=None decimal=3"); roi = ""; start = getTime(); titles = newArray(list.length); run("Clear Results"); setBatchMode(true); // runs up to 20 times faster j = 0; for (i=0; i