Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed deprecation with adaptative thresholding #2474

Merged
merged 2 commits into from
Oct 4, 2019

Conversation

jcohenadad
Copy link
Member

The skimage function threshold_adaptive() has been deprecated, so this PR replaces it with the equivalent threshold_local(). This PR also includes slight clarifications in the usage.

Fixes #2471

@jcohenadad jcohenadad added bug category: fixes an error in the code compatibility Incompatible API changes that necessitate a MAJOR version bump. Refer to https://semver.org/ sct_maths context: labels Oct 4, 2019
@jcohenadad jcohenadad added this to the 4.1.0 milestone Oct 4, 2019
Copy link
Member

@charleygros charleygros left a comment

Choose a reason for hiding this comment

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

Tested. Works well! Thank you 👍

@jcohenadad jcohenadad merged commit eb65a84 into master Oct 4, 2019
@jcohenadad jcohenadad deleted the jca/2471-maths-otsu branch October 4, 2019 12:13
jcohenadad added a commit that referenced this pull request Dec 18, 2019
* sct_maths: Replaced deprecated threshold_adaptive by threshold_local

Fixes #2471

* sct_maths: Changed flag: -otsu-adap --> -adap

because this is not otsu


Former-commit-id: 928f46e9807beb1817e2f095d2b340fe71c03e9b [formerly ce38d6f [formerly eb65a84]]
Former-commit-id: 500578b0ac4cc96ac8b58f5004cfa3f62dcb6950
Former-commit-id: 1305a75
jcohenadad added a commit that referenced this pull request Dec 18, 2019
* sct_maths: Replaced deprecated threshold_adaptive by threshold_local

Fixes #2471

* sct_maths: Changed flag: -otsu-adap --> -adap

because this is not otsu


Former-commit-id: eb65a84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: fixes an error in the code compatibility Incompatible API changes that necessitate a MAJOR version bump. Refer to https://semver.org/ sct_maths context:
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sct_maths -otsu_adap error
2 participants