You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that `c1⋅c2 = (c1.r*c2.r + c1.g*c2.g + c1.b*c2.b)/3`, where the division by 3 ensures the equivalence of `x`, `Gray(x)`, and `RGB(x, x, x)` for scalar `x` as described above for `norm`.
81
82
82
-
It is not obvious that one of these should be the default notion of multiplication, so the ordinary multiplication operation `*` is undefined for RGB colors.
83
-
(It is defined for grayscale.)
83
+
It is designed to not support the ordinary multiplication operation `*` because it is not obvious which one of these should be the default option.
84
+
85
+
However, `*` is defined for grayscale since all these three multiplication operations (i.e., `⋅`, `⊙` and `⊗`) are equivalent in the 1D vector space.
84
86
85
87
### Variance
86
88
87
89
The variance `v = E((c - μ)^2)` (or its bias-corrected version) involves a multiplication,
88
-
and consistent with the above you must specify which sense of multiplication you wish to use:
90
+
and to be consistent with the above you must specify which sense of multiplication you wish to use:
0 commit comments