Message194460
> Can you add a reference for the coefficients?
I have only link to Wikipedia which refers to Code of Federal Regulations §73.682. This link (http://en.wikipedia.org/wiki/YIQ) already mentioned at the top of the file.
> (You claim about the current rounding is not exactly correct. While .28*g rounds .277 rather than .274, the current .52*g rounds the non-FCC .523 rather than the FCC .5251. So I avoided making the claim in the suggested entry. It is not important.)
A sum of coefficients in this line should be 0 (Q=0 for R=G=B).
Patch updated. I added a What's New entry and update to use of unittest.main(), rewrite rgb_to_yiq() in the form as in Wikipedia (it uses less multiplications) and write coefficients in yiq_to_rgb() with maximal precision (as calculated with Python). |
|
Date |
User |
Action |
Args |
2013-08-05 08:20:13 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, mark.dickinson, ezio.melotti, packetslave |
2013-08-05 08:20:13 | serhiy.storchaka | set | messageid: <1375690813.22.0.207825558113.issue14323@psf.upfronthosting.co.za> |
2013-08-05 08:20:13 | serhiy.storchaka | link | issue14323 messages |
2013-08-05 08:20:12 | serhiy.storchaka | create | |
|