Thanks!
Disabling this by default is a good solution and will make the results more 
consistent.

Stein

-----Original Message-----
From: Wayne Rasband <[email protected]>
Sent: 16. januar 2024 16:31
Subject: Re: How to permanently disable autothreshold in Convert Stack to Binary

Hi Stein,

Upgrade to the latest ImageJ daily build (1.54i7) and the "Calculate threshold 
for each image" option in the Process>Binary>Make Binary dialog will be 
disabled by default.

-wayne

> On Jan 15, 2024, at 5:29 AM, Stein Rørvik 
> <[email protected]> wrote:
>
> In the "Convert Stack to Binary" dialog the "Calculate threshold for each 
> image" is enabled by default for every session. I always disable this as I 
> always need to convert the whole stack using the same threshold value. But it 
> is quite annoying to have to click this every time, and get the wrong result 
> if I forgot to change it. Can this option perhaps be saved in the 
> IJ_Prefs.txt? Or be turned off by default?
>
> If not,
> I had a look at the source code at
> https://imag/
> ej.net%2Fij%2Fsource%2Fij%2Fplugin%2FThresholder.java&data=05%7C02%7Cs
> tein.rorvik%40sintef.no%7C9714c0c38e2c4b4f4a3708dc16a84cc5%7Ce1f00f396
> 04145b0b309e0210d8b32af%7C1%7C0%7C638410159294071304%7CUnknown%7CTWFpb
> GZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0
> %3D%7C3000%7C%7C%7C&sdata=a3WhxPl3ckv%2BrZGJsdvQqag8aa7pVmPTgi%2B49%2B
> 2dP3I%3D&reserved=0 and it appears that the relevant flag is
> controlled by this line:
> private static boolean staticUseLocal = true;
>
> Can this be made public, so that we can disable this with a script call at 
> startup?

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

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

Reply via email to