Skip to content

Commit e8f8c68

Browse files
Fix bug in default threshold value
1 parent c795e0f commit e8f8c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/intensity_annotation/gfp_annotation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def pick_widget(viewer: napari.Viewer, value: float = 0.0):
243243
},
244244
call_button="Apply",
245245
)
246-
def threshold_widget(viewer: napari.Viewer, threshold: float = (max_val - min_val) / 2):
246+
def threshold_widget(viewer: napari.Viewer, threshold: float = (max_val + min_val) / 2):
247247
label_ids = statistics.label_id.values
248248
stat_name = stat_widget.param_box.currentText()
249249
vals = statistics[stat_name].values

0 commit comments

Comments
 (0)