difference between image depth and channels

后端 未结 5 1365
失恋的感觉
失恋的感觉 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:25

    Image depth means the range of value each channel can have. If you have a channel depth of e.g. 8 bit (unsigned char) one channel can have values from 0 - 255. RGB means 3 channels, one for the R ed value, one for one for the G reen value and one for the B lue value.

提交回复
热议问题