Why OpenCV Using BGR Colour Space Instead of RGB

后端 未结 2 1698
南笙
南笙 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:32

    OpenCV reads in images in BGR format (instead of RGB) because when OpenCV was first being developed, BGR color format was popular among camera manufacturers and image software providers. The red channel was considered one of the least important color channels, so was listed last, and many bitmaps use BGR format for image storage. However, now the standard has changed and most image software and cameras use RGB format, which is why, in programs, it's good practice to initially convert BGR images to RGB before analyzing or manipulating any images.

提交回复
热议问题