0

I just started open cv and I'm trying to understand the output that I'm getting from imread function. This is the code:

img = cv2.imread('...')

The image width x height is 3744 X 2104

But in the img variable I have defined, I have a multi dimensional array with shape (2104, 3744, 3).

I would like to know what does this shape mean in terms of images.

When I iterate over img, each item has a shape (3744, 3) and there 2104 such values. What I want to know is why do we have 3 x 3744 values 2104 times. I expected a matrix of width x height I mentioned.

4

1 回答 1

0

图像大小为 2104 x 3744 像素,“3”大概是颜色通道的数量,即红绿蓝

于 2013-10-05T01:44:30.123 回答