Michael,

please try this macro code (that works for me):

//
run("Set Measurements...","area display redirect=None decimal=2");
run("Select None");
run("8-bit");
setAutoThreshold("Default no-reset");
getThreshold(min,max);
max = max * 1.25; // grab additional periphery which may be thin and light
setThreshold(0, max, "raw");
run("Analyze Particles...", "size=2000-Infinity show=Nothing display exclude"); print(getTitle + "\t " + getResult("Area") + "\t pixels -- result really should be reported as um^2");
selectWindow("Log");
//

Best

Herbie

:::::::::::::::::::::::::::::::::::::::::::::
Am 03.07.25 um 18:38 schrieb Cammer, Michael:
        run("Select None");
        run("8-bit");
        //run("Median...", "radius=2");
        setAutoThreshold("Default no-reset");
        getThreshold(min, max);
        max = max * 1.25;                       // grab additional periphery 
which may be thin and light
        setThreshold(0, max, "raw");
        doWand(getWidth/2, getHeight/2);
        run("Set Measurements...", "area display redirect=None decimal=2");
        run("Measure");
        print(getTitle + "\t  " + getResult("Area") + "\t pixels -- result really 
should be reported as um^2");
        selectWindow("Log");

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Reply via email to