简介:
OpenCV用C++语言编写,它具有C ++,Python,Java和MATLAB接口,并支持Windows,Linux,Android和Mac OS,OpenCV主要倾向于实时视觉应用,并在可用时利用MMX和SSE指令, 如今也提供对于C#、Ch、Ruby,GO的支持。
opencv读取的图片数据格式为numpy的nparray格式。
对应维度信息表示:
[图片高度,图片宽度,像素BGR值]
[数组行数,数组列数,像素BGR值]
[Height,Width,Channels]
Ps:opencv读取的图片数值为BGR格式,与PIL库读取图片得到的RGB格式不同,因此如果用其他库的imshow函数来显示图片,图片的颜色会发生变化
BGR含义
B:Blue
G:Green
R:Red
它们代表三原色,不同的颜色是通过三原色的不同比例获得的。因此,在二维图像的像素点阵列中,在确定行和列之后,还获得该位置处的三原色的值来表示颜色。
[En]
They represent three primary colors, and different colors are obtained by different ratios of three primary colors. Therefore, in an array of pixel points in a two-dimensional picture, after the rows and columns are determined, the values of the three primary colors at that location are also obtained to represent the color.
Ps:像素值大小[0,255]