difference between image depth and channels

后端 未结 5 1354
失恋的感觉
失恋的感觉 2020-12-30 00:56

I am trying to learn opencv but its very confusing. Can someone know the difference between imagedepth and the no. of channels in an image. Suppose the image depth is 8 and

5条回答
  •  天涯浪人
    2020-12-30 01:17

    Image depth is length of actual data type used for storing image (integer, char, float). In your case it seems to be char or unsigned char as depth is 8 bits.

    Number of channels is a number of numbers, that describe a color of the particular pixel (e.g. RGB - 3 channels).

提交回复
热议问题