// This is a modification of the BatchMeasure // macro. It is modified to carry out certain // image manipulations and parameter settings // necessary for the image analysis steps of // phalloidin-based quantification of filamentous // actin in isolated myofibres (called PhAct ). // The macro batch measures a folder of images. // Use the Analyze>Set Measurements command // to specify the measurement parameters. // Include Integrated Density for PhAct. // Check "Display Label" in the Set Measurements // dialog and the file names will be added to the // first column of the "Results" table. macro "PhAct " { dir = getDirectory("Choose a Directory "); list = getFileList(dir); if (getVersion>="1.40e") setOption("display labels", true); setBatchMode(true); for (i=0; i=1) { run("Invert"); run("32-bit"); setAutoThreshold(); getThreshold(x, y); x = 1; setThreshold(x, y); run("NaN Background"); run("Measure"); close(); } } }