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
Multiplication between RGB types seems to be missing #119
Comments
Why is channelwise the right definition of
|
OK I understand the ambiguity here. I was surprised, because channelwise product is more common in image processing libraries. Sorry about that. |
julia> using Colors
julia> chantimes(c1, c2) = mapc(*, c1, c2)
chantimes (generic function with 1 method)
julia> c1, c2 = rand(RGB{Float32}), rand(RGB{Float32})
(RGB{Float32}(0.5848855f0,0.29970312f0,0.60462904f0), RGB{Float32}(0.57155025f0,0.32285166f0,0.91198397f0))
julia> chantimes(c1, c2)
RGB{Float32}(0.33429143f0,0.09675965f0,0.551412f0)
julia> using TestImages
julia> img = testimage("lighthouse");
julia> chantimes.(img, img) If this is not discoverable, a democard would be wonderful! |
Actually, it also occurs to me that we might have enough operators to distinguish this: |
Great idea and I think it would be really useful! Although for me the only problem is that I can't type these symbols in vscode 😂 |
julia-vscode/julia-vscode#613 suggests you might try this extension: https://marketplace.visualstudio.com/items?itemName=GuidoTapia2.unicode-math-vscode |
Closed by #131 |
If I add:
therefore, I can multiply two RGB images.
The text was updated successfully, but these errors were encountered: