MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / rgb2q

Function rgb2q

source/util/pixelMatch.cpp:33–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31double rgb2y(U8 r, U8 g, U8 b) { return r * 0.29889531 + g * 0.58662247 + b * 0.11448223; }
32double rgb2i(U8 r, U8 g, U8 b) { return r * 0.59597799 - g * 0.27417610 - b * 0.32180189; }
33double rgb2q(U8 r, U8 g, U8 b) { return r * 0.21147017 - g * 0.52261711 + b * 0.31114694; }
34
35// calculate color difference according to the paper "Measuring perceived color difference
36// using YIQ NTSC transmission color space in mobile applications" by Y. Kotsarenko and F. Ramos

Callers 1

colorDeltaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected