-
Notifications
You must be signed in to change notification settings - Fork 54
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
document the difference between float32 and Float32, etc. #146
base: source
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! I opened that issue as a memo to myself but apparently you're handling it rather eagerly.
It's really nice to see these improvements in the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great idea, thanks for tackling this.
d513c22
to
85f1cab
Compare
docs/src/tutorials/arrays_colors.md
Outdated
[...] | ||
``` | ||
**Note**: `Float64.(rgb_img)` throws error because it does not implicitly | ||
convert RGB to single channel but `float64.(rgb_img)` works as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Works as expected" depends entirely on what your expectations are. Some people will expect it to return a single floating-point number.
How about copy/pasting the examples with a single colorant object that I gave in my explanation to you? This mixes together broadcasting with colorspace conversion, and we don't have to mix the concepts.
I'd like to also add the following table into the document as a cheat sheet: The following table tells you how you can convert from a number/colorant to another number/colorant
Or maybe a simplified version by removing the explicit construction ones:
I personally like the simplified version because it shows all the convenient way of converting things in JuliaImages. @timholy will the usage of |
85f1cab
to
134e24a
Compare
@johnnychen94 this cheat-sheet is really helpful. |
Solves #139
Added documentation to advertise the usage of lower-cased forms of Float32, Float64 etc