Skip to content

Commit c76b740

Browse files
Set pad option to ticked to prevent edge erosion
1 parent ab0e720 commit c76b740

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/imcflibs/imagej/prefs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ 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 black background for binary images and set pad edges to false to prevent eroding from image edge
41-
IJ.run("Options...", "black ")
40+
# Set black background for binary images and set pad edges to true to prevent eroding from image edge
41+
IJ.run("Options...", "iterations=1 count=1 black pad")
4242

4343
# Set default saving format to .txt files
4444
IJ.run("Input/Output...", "file=.txt save_column save_row")

0 commit comments

Comments
 (0)