Skip to content

Commit f9b6e99

Browse files
committed
Add explanation to iteration and count options
1 parent 82df887 commit f9b6e99

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/imcflibs/imagej/prefs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ def set_default_ij_options():
3737
# Set foreground color to be white and background black
3838
IJ.run("Colors...", "foreground=white background=black selection=red")
3939

40+
# Set iterations and count to 1
41+
# - Iterations: number of times erosion (dilation, opening, closing) is performed
42+
# - Count: number of adjacent background pixels necessary before a pixel is removed
43+
# from the edge of an object during erosion and the number of adjacent foreground
44+
# pixels necessary before a pixel is added to the edge of an object during dilation.
4045
# Set black background for binary images and set pad edges to true to prevent eroding from image edge
4146
IJ.run("Options...", "iterations=1 count=1 black pad")
4247

0 commit comments

Comments
 (0)