Login  Register

Auto Threshold

Posted by bds81175 on Mar 07, 2013; 10:22pm
URL: http://imagej.273.s1.nabble.com/Auto-Threshold-tp5002055.html

I'm using a Huang autoThreshold in a macro that I need to distribute to multiple computers and some users are experiencing inverted results from the threshold.  It's pretty simple:  it's an 8-bit image and I call this function:
function thresholdHuang() {
        setAutoThreshold("Huang dark");
        run("Convert to Mask");
}

On my PC I get black (0) holes with white (255) surface.  On the users PC I get the exact opposite.  What am I doing wrong?  It's got to be something stupid/simple.