Skip to content
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

Should CVD matrices be applied to linear RGB or gamma-encoded RGB? #24

Closed
mpetroff opened this issue Jan 29, 2021 · 1 comment
Closed

Comments

@mpetroff
Copy link

Machado et al. (2009) does not specify exactly how its CVD simulation matrices should be applied to RGB. As pointed out by USAARL Report No. 2020-10, Machado et al. apply the transforms to gamma-encoded RGB values (I was also able to confirm this by trying to replicate the figures). The authors of the technical report apply the matrices to linear RGB values, as is done in Colorspacious. Applying a linear transform to gamma-encoded values doesn't make much sense to me, so I feel that Colorspacious's current approach is correct, but I wanted to see if anyone else had thoughts on this.

@mpetroff
Copy link
Author

mpetroff commented Mar 1, 2021

The following comment about this from Manuel M. Oliveira was forwarded to me:

According to our experience, applying the matrices to either linear or gamma-encoded RGB did not appear to make any significant difference. Thus, in our paper, we showed results directly on gamma-encoded RGB.

The fact that it didn't make a difference makes sense, since the experiments done in the paper did not use extremely dark colors, where the difference between linear and gamma-encoded RGB values is the largest.

However, as the CVD simulations matrices were derived from the LMS color space, the use of linear RGB values makes the most sense, since a linear transformation can be used to translate LMS values into linear RGB values, unlike the transformation to gamma-encoded RGB, which is non-linear.

@mpetroff mpetroff closed this as completed Mar 1, 2021
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

No branches or pull requests

1 participant