I'm using OpenCV 3.0, but my question should be version agnostic. I'm wondering which of [the many](https://en.wikipedia.org/wiki/RGB_color_space#Specifications) RGB color space OpenCV uses by default.
That is, **for images in the [default representation, `BGR`](http://docs.opencv.org/doc/tutorials/core/how_to_scan_images/how_to_scan_images.html#how-the-image-matrix-is-stored-in-the-memory), which RGB space does OpenCV use**?
I suspect they are either the [CIE 1931 XYZ functions](https://en.wikipedia.org/wiki/File:CIE_1931_XYZ_Color_Matching_Functions.svg):

or the [CIE 1931 RGB functions](https://commons.wikimedia.org/wiki/File:CIE1931_RGBCMF.svg):

↧