Skip to content

Commit 5f6cd4c

Browse files
committed
Correction as there is a confirmed error error in the paper
There were two contradictory values used in the sCAM paper. We used the one that matched colour science, but now there was a correction that clarifies that `0.1`, not `0.46`, is correct.
1 parent a374ced commit 5f6cd4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coloraide/spaces/scam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def scam_to_xyz(
179179
if J is not None:
180180
Ia = J
181181
elif Q is not None:
182-
Ia = Q / ((2 * (env.fl ** 0.46)) / env.c)
182+
Ia = Q / ((2 * (env.fl ** 0.1)) / env.c)
183183
I = alg.nth_root(Ia * 0.01, env.cz) * 100
184184

185185
# Calculate the chroma component
@@ -218,7 +218,7 @@ def xyz_to_scam(xyz: Vector, env: Environment, calc_hue_quadrature: bool = True)
218218
Ia = 100 * alg.spow(I * 0.01, env.cz)
219219

220220
# Brightness
221-
Q = Ia * ((2 * (env.fl ** 0.46)) / env.c)
221+
Q = Ia * ((2 * (env.fl ** 0.1)) / env.c)
222222

223223
# Colorfulness
224224
M = (C * (env.fl ** 0.1) * et) * alg.zdiv(1, alg.spow(Ia, 0.27), 0.0) * env.fm

0 commit comments

Comments
 (0)