Skip to content

Commit

Permalink
Fix bug where Otsu thresholding ignored roi_method='ignore'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdolezal committed Feb 21, 2024
1 parent 7cacb9b commit 9d349bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slideflow/slide/qc/otsu.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _thumb_from_slide(
thumb = thumb[:, :, :3]

# Only apply Otsu thresholding within ROI, if present
if len(wsi.roi_polys):
if wsi.has_rois():
ofact = 1 / wsi.slide.level_downsamples[level]
roi_mask = np.zeros((thumb.shape[0], thumb.shape[1]))
scaled_polys = [
Expand Down

0 comments on commit 9d349bf

Please sign in to comment.