Why OpenCV Using BGR Colour Space Instead of RGB

后端 未结 2 1703
南笙
南笙 2020-11-29 08:09

Can any one explain why OpenCV using BGR colour space instead of RGB. We all know that RGB is the convenient colour model

2条回答
  •  被撕碎了的回忆
    2020-11-29 08:24

    "The reason why the early developers at OpenCV chose BGR color format is probably that back then BGR color format was popular among camera manufacturers and software providers. E.g. in Windows, when specifying color value using COLORREF they use the BGR format 0x00bbggrr.

    BGR was a choice made for historical reasons and now we have to live with it. In other words, BGR is the horse’s ass in OpenCV."

提交回复
热议问题