// This macro demonstrates the use of the 'no-reset' option // of the setAutoThreshold() macro function. This option // corresponds to "Don't reset range" in the "Threshold" window. close("*"); run("M51 Galaxy (177K, 16-bits)"); id = getImageID; run("Enhance Contrast...", "saturated=3"); setAutoThreshold("MaxEntropy dark"); run("Create Mask"); rename("Display range reset"); selectImage(id); run("Enhance Contrast...", "saturated=3"); setAutoThreshold("MaxEntropy dark no-reset"); run("Create Mask"); rename("Display range not reset"); selectImage(id); resetThreshold; run("Tile");