Thank you for your code. I use C++to process colors temporarily, and these codes have provided me with some convenience.
An error was found in the XYZ_to_RGB.hpp
There is an error in the calculation order of converting linear rgb to srgb in line 19. The correct order is:
std:: pow (linear srgb color (i), 1.0/2.4) * 1.055-0.055
Perhaps you can verify and fix this issue.
Thank you for your code. I use C++to process colors temporarily, and these codes have provided me with some convenience.
An error was found in the XYZ_to_RGB.hpp
There is an error in the calculation order of converting linear rgb to srgb in line 19. The correct order is:
Perhaps you can verify and fix this issue.