OpenCV and MATLAB gray scale values differ for the same image

前端 未结 3 575
粉色の甜心
粉色の甜心 2021-01-27 00:10

In MATLAB, i read a color video , extract a certain frame and convert it to a gray scale image using the rgb2gray function.But when I load the same video with OpenC

3条回答
  •  情话喂你
    2021-01-27 00:34

    The OpenCV Reference Manual, Release 2.4.10.0, Page 283: "Note that the default color format in OpenCV is often referred to as RGB but it is actually BGR (the bytes are reversed). So the first byte in a standard (24-bit) color image will be an 8-bit Blue component, the second byte will be Green, and the third byte will be Red."

提交回复
热议问题