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

Update section on image data types. #6

Merged
merged 3 commits into from
Aug 26, 2024
Merged

Update section on image data types. #6

merged 3 commits into from
Aug 26, 2024

Conversation

mkcor
Copy link
Member

@mkcor mkcor commented Aug 26, 2024

@lagru as discussed yesterday; not only floating-point type images may have 'exotic' ranges (see this example: range: (10, 4095)). /cc @stefanv

@mkcor
Copy link
Member Author

mkcor commented Aug 26, 2024

Sorry for not complying with a legit workflow here, I squeezed in 3f6d1ed.

@mkcor
Copy link
Member Author

mkcor commented Aug 26, 2024

... and 93177bd 😝

@lagru lagru merged commit 1cc1a0e into main Aug 26, 2024
2 checks passed
@lagru lagru deleted the update-dtypes branch August 26, 2024 08:56
@@ -139,17 +139,17 @@ cat_float = ski.util.img_as_float(cat)
print(cat_float.dtype, cat_float.min(), cat_float.max())

print()
print("231/255 =", 231/255.)
print("cat.max()/255 =", cat.max()/255)
Copy link
Member Author

@mkcor mkcor Aug 26, 2024

Choose a reason for hiding this comment

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

Taking note that print(f'{cat.max()/255 = }') works too. Thanks, @stefanv!

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.

3 participants