Skip to content

Instantly share code, notes, and snippets.

@davidboy
Created December 3, 2015 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidboy/0fb015440045e6434c48 to your computer and use it in GitHub Desktop.
Save davidboy/0fb015440045e6434c48 to your computer and use it in GitHub Desktop.
private static final double[][] RGB_TO_LMS = {
{0.3811, 0.5783, 0.0402},
{0.1967, 0.7244, 0.0782},
{0.0241, 0.1288, 0.8444}
};
private static final double[][] LOG_LMS_TO_LAB = {
{0.5773502691896258, 0.5773502691896258, 0.5773502691896258},
{0.4082482904638631, 0.4082482904638631, -0.8164965809277261},
{0.7071067811865475, -0.7071067811865475, 0.0}
};
private static final double[][] LAB_TO_LOG_LMS = {
{0.5773502691896258, 0.4082482904638631, 0.7071067811865475},
{0.5773502691896258, 0.4082482904638631, -0.7071067811865475},
{0.5773502691896258, -0.8164965809277261, 0.0}
};
private static final double[][] LMS_TO_RGB = {
{ 4.4679, -3.5873, 0.1193},
{-1.2186, 2.3809, -0.1624},
{ 0.0497, -0.2439, 1.2045}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment