Bit depth refers to the number of digits used to store each pixel. For example, for a 32-bit 100*100 pixel image, the size is 100*100*32/8 = 40000 bytes,
It turns out that the image color depth is the bit depth, and then I searched the internet to find out that these two concepts are completely different.
Image depth refers to the number of digits used to store each pixel. It is also used to measure the color resolution of the image. the depth of the image determines the number of colors that each pixel of the color image may have, or determines the number of gray levels that each pixel of the gray image may have. it determines the maximum number of colors that can appear in a color image, or the maximum gray level in a gray image. for example, for a monochrome image, if each pixel has eight digits, the maximum gray scale is 2 to the power of 8, that is, 256. the number of pixels in a color image rgb3 is 4, 4, and 2, respectively. The maximum number of colors is 4 + 4 + 2, that is, 1024, that is to say, the depth of the pixel is 10 bits, and each pixel can be one of the 1024 colors.
Color depth is also called the color depth. In a certain resolution, how many colors each pixel can have? Its unit is bit ). The typical color depth is 8-bit, 16-bit, 24-bit, and 32-bit. The higher the depth value, more colors can be obtained.