njsmith / colorspacious

A powerful, accurate, and easy-to-use Python library for doing colorspace conversions
MIT License
169 stars 16 forks source link

Document range of JCh channels #18

Open clamydo opened 6 years ago

clamydo commented 6 years ago

I could not find any documentation of the range of the channels in JCh variant the CICAM02. Or is there no such thing as a range for this values?

Additionally, is there a way to calculate ranges that produce valid SRGB?

RoyiAvital commented 4 years ago

Have you figured it out?

KelSolaar commented 4 years ago

The model is not bounded so there is not really a defined range. As to find that of sRGB, you could simply use the primaries and complementary colours to define a volume and compute the CIECAM02 values with that.

RGB = [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [0, 1, 1], [1, 0, 1], [1, 1 ,1]]