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

Convert all non-zero values to 1 in the image matrix when reading image #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kevinwjin
Copy link

@kevinwjin kevinwjin commented Jul 26, 2022

SAFARI occasionally produces an error when loading images (e.g. GIFs from the MPEG-7 shape dataset) using the built-in function, which is attributable to non-binary values such as 2 being present in the image matrix. Converting all non-zero values in the image matrix to 1 fixes the error and the image loads correctly.

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.

1 participant