Skip to content

fix(quick_qc): replace deprecated skimage binary_dilation with dilation - #851

Merged
m-reuter merged 1 commit into
devfrom
fix-binary-dilation
Aug 4, 2026
Merged

fix(quick_qc): replace deprecated skimage binary_dilation with dilation#851
m-reuter merged 1 commit into
devfrom
fix-binary-dilation

Conversation

@m-reuter

@m-reuter m-reuter commented Aug 4, 2026

Copy link
Copy Markdown
Member

Fixes deprecated function:

/fastsurfer/FastSurferCNN/quick_qc.py:138: FutureWarning: binary_dilation is deprecated since version 0.26 and will be removed in version 0.28. Use skimage.morphology.dilation instead. Note the lack of mirroring for non-symmetric footprints (see docstring notes).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates FastSurfer’s quick_qc.py to address a scikit-image deprecation warning by replacing skimage.morphology.binary_dilation with skimage.morphology.dilation in the ventricle/background intersection QC computation.

Changes:

  • Replaced deprecated binary_dilation import/usage with dilation.
  • Applied small formatting cleanups (function signature indentation, minor boolean expression simplification, f-string spacing).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m-reuter
m-reuter merged commit 700cfdc into dev Aug 4, 2026
4 checks passed
@m-reuter
m-reuter deleted the fix-binary-dilation branch August 4, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants