Skip to content

Do not allow 64-bit integer inputs; add test to ensure masked and unmasked modes are aligned - #6875

Merged
jarrodmillman merged 3 commits into
scikit-image:mainfrom
stefanv:canny-avoid-uint64
Apr 8, 2023
Merged

jarrodmillman merged 3 commits into
scikit-image:mainfrom
stefanv:canny-avoid-uint64

Conversation

@stefanv

@stefanv stefanv commented Apr 7, 2023

Copy link
Copy Markdown
Member

@rfezzani A less intrusive patch, and a test to ensure that masked and unmasked modes remain aligned.

Closes #6871

Follow-up to #6874

@stefanv
stefanv force-pushed the canny-avoid-uint64 branch from 46dc128 to 99679da Compare April 7, 2023 19:35
Comment thread skimage/feature/_canny.py Resolved
Comment thread skimage/feature/_canny.py Resolved
@lagru lagru added 🔧 type: Maintenance Refactoring and maintenance of internals 🩹 type: Bug fix Fixes unexpected or incorrect behavior labels Apr 7, 2023
@jarrodmillman jarrodmillman added this to the 0.21 milestone Apr 7, 2023

@lagru lagru left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let me quickly add a test for the error before merging just for completeness sake. ;)

@@ -1,5 +1,6 @@
import unittest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just noticed that this test is still using the old unittest API. 🙈

@jarrodmillman
jarrodmillman merged commit 55b4570 into scikit-image:main Apr 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🩹 type: Bug fix Fixes unexpected or incorrect behavior 🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New canny implementation silently fails with integer images.

3 participants