// This macro demonstrates how to use the "Redirect to:" option // in the Set Measurements dialog with the Measure command. It // writes three measurments to the Results table: // // 1. First image without redirection // 2. Redirect to second image without threshold // 3. Redirect to 2nd image with threshold // // There is a JavaScript version at // http://imagej.nih.gov/ij/macros/js/MeasureRedirected.js setBatchMode(true); run("Clear Results"); newImage("P1", "32-bit ramp", 2048, 2048, 1); newImage("P2", "32-bit ramp", 2048, 2048, 1); run("Multiply...", "value=100"); selectImage("P1"); makeOval(291,477,774,537); run("Set Measurements...", "area mean min redirect=None"); run("Measure"); run("Set Measurements...", "area mean min redirect=P2"); run("Measure"); run("Set Measurements...", "area mean min limit redirect=P2"); selectImage("P2"); setThreshold(0, 33); selectImage("P1"); run("Measure");