python rgb 图像
A colored image can be represented as a 3 order matrix. The first order is for the rows, the second order is for the columns and the third order is for specifying the color of the corresponding pixel. Here, we use the BGR color format(because OpenCV python library works on BGR format, not on RGB), so the third order will take 3 values of Blue, Green, and Red respectively.
彩色图像可以表示为3阶矩阵。 第一个顺序用于行,第二个顺序用于列,第三个顺序用于指定相应像素的颜色。 在这里,我们使用BGR颜色格式(因为OpenCV python库适用于BGR格式,而不适用于RGB),因此三阶分别采用蓝色,绿色和红色这3个值。
Colour planes of BGR image:
BGR图像的彩色平面:
Consider a BGR image array I then,
考虑一个BGR图像阵列我然后,
I[:, :, 0] represents the Blue colour plane of the BGR image
I [:,:,0]表示BGR图像的蓝色平面
I[:, :,