8.Features
© 2023 China Daheng Group, Inc. Beijing Image Vision Technology Branch 98
MSB
LSB
bi t 11 bi t 10
bi t 9
bi t 8
bi t 7
bi t 6
bi t 5
bi t 4
bi t 3
bi t 2
bi t 1
bi t 0
Bi na ry
0
0
0
0
0
0
0
1
0
1
1
0
MSB
LSB
bi t 11 bi t 10
bi t 9
bi t 8
bi t 7
bi t 6
bi t 5
bi t 4
bi t 3
bi t 2
bi t 1
bi t 0
Bi na ry
0
0
0
0
0
0
1
0
1
1
0
0
Raw pi xel
value: 22
Shift pi xel
value: 44
The least significant bit in each 12-bit image data is set to 0.
Example 2: Digital Shift by 2, 8-bit Image Data
Raw pi xel
value(12bit): 726
Raw pi xel
value(8bit): 45
Shift pi xel
value(8bit): 181
Assume that your camera has a maximum pixel bit depth of 12-bit, but is currently using an 8-bit pixel
format. In this case, the camera first performs the digital shift calculation on the 12-bit image data. Then,
the camera transmits the 8 most significant bits.
Example 3: Digital Shift by 1, 12-bit Image Data, High Value
Assume that your camera is using a 12-bit pixel format. Also assume that one of your original pixel values
is 2839.
MSB
LSB
bi t 11 bi t 10
bi t 9
bi t 8
bi t 7
bi t 6
bi t 5
bi t 4
bi t 3
bi t 2
bi t 1
bi t 0
Bi nary
1
0
1
1
0
0
0
1
0
1
1
1
MSB
LSB
bi t 11 bi t 10
bi t 9
bi t 8
bi t 7
bi t 6
bi t 5
bi t 4
bi t 3
bi t 2
bi t 1
bi t 0
Bi nary
1
1
1
1
1
1
1
1
1
1
1
1
Raw pi xel
value: 28 39
Shift pi xel
value:
409 5
If you apply digital shift by 1 to this pixel value, the resulting value is greater than the maximum possible
value for 12-bit pixel formats. In this case, the value is set to the maximum value, i.e., all bits are set to 1.