Hi Paul,
I don't think there's an error in specification, because I've successfully implemented it (and the test vectors).
Have a look at my Java implementation:
https://bitbucket.org/sco0ter/babbler/src/1cddf27f01fb464628e715222259912b09de9457/xmpp-extensions/src/main/java/rocks/xmpp/extensions/colors/Color.java?at=xep0392&fileviewer=file-view-default
Test Vectors:
https://bitbucket.org/sco0ter/babbler/src/1cddf27f01fb464628e715222259912b09de9457/xmpp-extensions/src/test/java/rocks/xmpp/extensions/colors/ColorGenerationTest.java?at=xep0392&fileviewer=file-view-default
Kind regards,
-- Christian
Gesendet: Mittwoch, 07. Februar 2018 um 13:12 Uhr
Von: "Paul Schaub" <[email protected]>
An: [email protected]
Betreff: [Standards] XEP-0392: Consisten Colors - Error in Test Vectors?
Von: "Paul Schaub" <[email protected]>
An: [email protected]
Betreff: [Standards] XEP-0392: Consisten Colors - Error in Test Vectors?
Hi!
I'm currently implementing XEP-0392 and I'm unable to reproduce the
values from the test vectors. More specifically, all my values are more
or less correct (very small rounding errors), apart from the B value.
I noticed that the B value in the test vectors is always suspiciously
even (1.00 or 0.00), so I wonder, if the author made a mistake there.
My values are the following:
Deficiency Input Angle CB CR R G B
none: 'Romeo', 5.711681589892942, 0.5, -0.32154605279699133, 0.28119242, 0.78955954, 1.618
redGreenBlindness: 'Romeo', 2.570088936303149, -0.5, 0.3215460527969912, 1.1828076, 0.67444044, -0.154
blueBlindness: 'Romeo', 2.570088936303149, -0.5, 0.3215460527969912, 1.1828076, 0.67444044, -0.154
none: '[email protected]', 3.6549009747360257, -0.5, -0.28185511000034474, 0.33683914, 1.1053511, -0.154
redGreenBlindness: '[email protected]', 0.5133083211462326, 0.5, 0.2818551100003448, 1.1271609, 0.3586489, 1.618
blueBlindness: '[email protected]', 3.6549009747360257, -0.5, -0.28185511000034474, 0.33683914, 1.1053511, -0.154
none: '😺', 5.78051897774931, 0.5, -0.2748848171290424, 0.3466115, 0.7562371, 1.618
redGreenBlindness: '😺', 2.6389263241595167, -0.5, 0.2748848171290423, 1.1173885, 0.7077629, -0.154
blueBlindness: '😺', 2.6389263241595167, -0.5, 0.2748848171290423, 1.1173885, 0.7077629, -0.154
none: 'council', 6.2830894333803435, 0.5, -4.793689976834576E-5, 0.7319328, 0.5599661, 1.618
redGreenBlindness: 'council', 3.1414967797905504, -0.5, 4.793689976828453E-5, 0.7320672, 0.9040339, -0.154
blueBlindness: 'council', 3.1414967797905504, -0.5, 4.793689976828453E-5, 0.7320672, 0.9040339, -0.154
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________
I'm currently implementing XEP-0392 and I'm unable to reproduce the
values from the test vectors. More specifically, all my values are more
or less correct (very small rounding errors), apart from the B value.
I noticed that the B value in the test vectors is always suspiciously
even (1.00 or 0.00), so I wonder, if the author made a mistake there.
My values are the following:
Deficiency Input Angle CB CR R G B
none: 'Romeo', 5.711681589892942, 0.5, -0.32154605279699133, 0.28119242, 0.78955954, 1.618
redGreenBlindness: 'Romeo', 2.570088936303149, -0.5, 0.3215460527969912, 1.1828076, 0.67444044, -0.154
blueBlindness: 'Romeo', 2.570088936303149, -0.5, 0.3215460527969912, 1.1828076, 0.67444044, -0.154
none: '[email protected]', 3.6549009747360257, -0.5, -0.28185511000034474, 0.33683914, 1.1053511, -0.154
redGreenBlindness: '[email protected]', 0.5133083211462326, 0.5, 0.2818551100003448, 1.1271609, 0.3586489, 1.618
blueBlindness: '[email protected]', 3.6549009747360257, -0.5, -0.28185511000034474, 0.33683914, 1.1053511, -0.154
none: '😺', 5.78051897774931, 0.5, -0.2748848171290424, 0.3466115, 0.7562371, 1.618
redGreenBlindness: '😺', 2.6389263241595167, -0.5, 0.2748848171290423, 1.1173885, 0.7077629, -0.154
blueBlindness: '😺', 2.6389263241595167, -0.5, 0.2748848171290423, 1.1173885, 0.7077629, -0.154
none: 'council', 6.2830894333803435, 0.5, -4.793689976834576E-5, 0.7319328, 0.5599661, 1.618
redGreenBlindness: 'council', 3.1414967797905504, -0.5, 4.793689976828453E-5, 0.7320672, 0.9040339, -0.154
blueBlindness: 'council', 3.1414967797905504, -0.5, 4.793689976828453E-5, 0.7320672, 0.9040339, -0.154
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________
_______________________________________________ Standards mailing list Info: https://mail.jabber.org/mailman/listinfo/standards Unsubscribe: [email protected] _______________________________________________
