markanini
16th December 2016, 03:02
I reached out to a Android dev suggesting a color conversion feature in his software and he pointed me to an API reference: https://developer.android.com/reference/android/graphics/ColorMatrix.html I'm not really knowlegable about programming or math to suggest the best implementation. Anyone have an idea?
Asmodian
17th December 2016, 01:46
R709 = 0.9395 ∗ Rsmptec + 0.0502 ∗ Gsmptec + 0.0103 ∗ Bsmptec
G709 = 0.0178 ∗ Rsmptec + 0.9658 ∗ Gsmptec + 0.0164 ∗ Bsmptec
B709 = −0.0016 ∗ Rsmptec − 0.0044 ∗ Gsmptec + 1.0060 ∗ Bsmptec
So your matrix would look like:
[0.9395, 0.0502, 0.0103, 0, 0
0.0178, 0.9658, 0.0164, 0, 0
-0.0016, -0.0044, 1.0060, 0, 0
0.0000, 0.0000, 0.0000, 1, 0]
markanini
19th December 2016, 12:27
Thanks!
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.