User Tools

Site Tools


Adjustable Watershed

Watershed segmentation of the Euclidian Distance Map, similar to Process>Binary>Watershed but with adjustable sensitivity and preview


Watershed segmentation based on the EDM splits a particle if the EDM has more than one maximum, i.e., if there are several largest inscribed circles at different positions. Thus, it is best for segmenting particles that roughly circular.


Dialog Options (Parameters)


  • This value determines the difference of radius between the smaller of the largest inscribed circles and a circle inscribed at the neck between the particles. The higher this value, the fewer segmentation lines. The standard ImageJ Process>Binary>Watershed algorithm uses a tolerance of 0.5. The value should not be much lower than this because low values tend to produce false segmentations, caused by the pixel quantization.


  • WARNING: With ImageJ versions 1.48t22 and before, it may remove small particles if the tolerance is larger than 1. This problem is fixed in ImageJ 1.48t23 (20-March-2014).
  • The plugin should not be used if particles can have inner holes. For such particles, unpredictable segmentation lines can occur or the particle may remain unsplit. To make sure you have no such particles, you may run 'fill holes' before use and see whether anything changes.

Version history

  • 2012-May-08 First version
  • 2022-Dec-15 Preview bugs fixed, nonblocking dialog


  • Copy into the ImageJ plugins folder or a subfolder thereof. Make sure that you name the downloaded file ””; uppercase/lowercase matters.
  • Compile with “Compile and Run” and press “OK”.
  • Alternatively, directly save the .class file Adjustable_Watershed.class into the ImageJ/plugins directory or an immediate subdirectory thereof. Again, make sure that you name the file correctly, uppercase/lowercase matters.
  • Use Help>Update Menus or restart ImageJ to make it appear in the Plugins menu.
plugin/segmentation/adjustable_watershed/start.txt · Last modified: 2022/12/15 17:53 by schmid

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki