GPU accelerated image processing for everyone

CLIJ2 home


By Peter Haub (based on work by G. Landini and Fiji developers)

Computes the local threshold based on Auto Local Threshold (Bernsen method) see: see code in: Formular:

if (tcontrast > max - min){ if ((max + min)/2.0 >= 128) res = 0} else if (val > (max + min)/2.0) res =0

Category: Filter

Availability: Available in Fiji by activating the update sites clij and clij2. This function is part of clijx_-

Usage in ImageJ macro

Ext.CLIJx_localThresholdBernsen(Image source, Image destination, Number radius, Number contrast_threshold);

Back to CLIJ2 reference Back to CLIJ2 documentation