setThreshold (minimum threshold = AUTO, maximum threshold)

Hi,
how can i set minimum threshold as auto and maximum as input.
In macro

TIA
patel

After setting an automatic threshold, you can get the values using getThreshold and change them subsequently using setThreshold:

run("Blobs (25K)");
manualUpper = 200;
setAutoThreshold();
getThreshold(lower, upper);
setThreshold(lower, manualUpper);

5 Likes

Thanks.!

It worked perfectly fine. Just had to change
setAutoThreshold();
to
setAutoThreshold( “Default”); .

1 Like