-
I have a script that does a Mini Batch Kmeans clustering with sklearn and then calculates the XYZ value of each RGB cluster. Unfortunately, I cant find anywhere where the output can be sanctified. Bruce Lindbloom's calculator says I am wrong... and so I come here to see, have I made a mistake in the code?
I am not getting any errors and the code looks good to me (it's much longer, but I have spared you!) but what i am concerned about is my execution of the RGB to XYZ function. sRGB is the source space. this is what the args look like from the command line for an sRGB image: for RGB (82, 115, 169) i get an XYZ of: 0.42641328 0.44800904 0.7002739 apparently, this is not correct? RGB (158, 180, 214) is the color reported from those XYZ coordinates (0.42641328 0.44800904 0.7002739) in Bruce's calculator. I also tried of course to enter the RGB (82, 115, 169) with no adaptation, and Bruce's XYZ is: 0.167694 0.169187 0.399104 Thank you in advance for any time you may take to review this. : ) -J |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
This is what the NPM looks like for this example: [[ 0.36185485 0.39314477 0.19604934] |
Beta Was this translation helpful? Give feedback.
This is what the NPM looks like for this example:
[[ 0.36185485 0.39314477 0.19604934]
[ 0.1842738 0.73217244 0.08355376]
[ 0.01160077 0.09905142 0.97873668]]