By Peter Haub (based on work by G. Landini and Fiji developers)
Computes the local threshold based on Auto Local Threshold (Mean method) see: https://imagej.net/Auto_Local_Threshold see code in: https://github.com/fiji/Auto_Local_Threshold/blob/master/src/main/java/fiji/threshold/Auto_Local_Threshold.java Formular:
if(value > (mean - c_value)) value = 0
Availability: Available in Fiji by activating the update sites clij and clij2. This function is part of clijx_-0.30.1.22.jar.
Ext.CLIJx_localThresholdMean(Image source, Image destination, Number radius, Number c_value);