Skip to content

Conversation

@197g
Copy link
Member

@197g 197g commented Jun 28, 2025

Previous attempts at reproducing the numbers failed to use the argument for marking inputs such that the transfer function must be applied, which is not the default despite what you might expect when hearing sRGB and similar. Thus the conversion matrices obviously differed.

This reproduces floats up to 3 digits which is .. not quite as good as I had expected but I think the Python library is using f64 for everything where our matrices are still f32 calculations and such intermediate results. A look at using more precise and faster matrix multiplication with explicit instructions should be done at a later point.

Previous attempts at reproducing the numbers failed to use the argument
for marking inputs such that the transfer function must be applied,
which is *not* the default despite what you might expect when hearing
sRGB and similar. Thus the conversion matrices obviously differed.

This reproduces floats up to 3 digits which is .. not quite as good as I
had expected but I think the Python library is using f64 for everything
where our matrices are still f32 calculations and such intermediate
results. A look at using more precise and faster matrix multiplication
with explicit instructions should be done at a later point.
@197g 197g force-pushed the matching-colour-science branch from a61953a to ffec2e9 Compare June 28, 2025 23:48
@197g 197g merged commit ec58c2f into master Jun 28, 2025
8 checks passed
@197g 197g deleted the matching-colour-science branch June 28, 2025 23:53
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.

2 participants