A robot camera image is stored in a 16-bit array, but its pixels occupy only a small subset of the available numbers. Another image uses a compact 12-bit representation yet preserves more distinct source codes. The container size alone does not explain how much image information survived the acquisition chain.
Sensor output, internal processing, transmitted pixel format, file representation, and display mapping are different stages. Their bit-depth labels need to be attached to the stage they describe before two images can be compared meaningfully.
A code range is a representation
For an unsigned integer representation, eight bits permit 256 codes, conventionally numbered zero through 255. Twelve bits permit 4,096 codes, zero through 4,095. Sixteen bits permit 65,536 codes.
These are counts of possible numerical symbols. They are not counts of independently resolved physical brightness levels or a direct measurement of camera dynamic range. Noise, saturation, analog response, and the processing chain still determine what the codes represent.
A twelve-bit code range can distinguish sixteen times as many integer values as an eight-bit range. That arithmetic does not establish sixteen times better robot inspection performance. The application needs to know whether the extra code distinctions contain useful scene information.
One hypothetical conversion
Imagine an invented grayscale processing stage that receives integers from zero through 4,095. It creates an eight-bit output by dividing each integer by sixteen and discarding the fractional part. This is a defined mathematical example, not a statement about a particular camera's conversion method.
Input values 1,024 through 1,039 all become output value 64. Input 1,040 becomes 65. The conversion merges groups of sixteen neighboring input codes.
If a downstream program receives 64, it cannot determine which of those sixteen original values produced it from that output alone. It can assign a representative estimate, but that estimate is not recovery of the original distinction.
Now store the eight-bit output value in a sixteen-bit integer. The number remains 64. The wider container can hold more possibilities, but it has not acquired information about the discarded input bits.
Even multiplying the eight-bit value by sixteen merely moves the 256 possible outputs onto a more widely spaced set of numbers. It does not create 4,096 independently observed input levels.
What the manufacturer documentation separates
Basler's Pixel Format documentation describes output formats separately from sensor bit depth and, on supported models, internal transfer bit depth. Its Sensor Bit Depth reference likewise describes cases where sensor depth can be selected independently of the transmitted format.
These pages belong to documentation version 137, released October 19, 2026. Feature availability and interactions remain model-specific. Their examples establish that several depth settings can coexist; they do not establish the acquisition behavior of an unspecified camera or image file.
A phrase such as twelve-bit image therefore needs context. It could refer to a sensor setting, meaningful pixel data, or a storage layout. The label should identify which statement is being made.
Packed and unpacked describe layout
Packing addresses a different question: how meaningful pixel bits occupy bytes. Basler illustrates an unpacked twelve-bit format using sixteen bits per pixel, including four padding bits. Its packed example uses twelve bits per pixel, with two pixels occupying three bytes.
The added padding is not additional brightness information. Nor does packing inherently discard meaningful values. A compatible reader can preserve the same twelve-bit codes in either layout. Exact bit order and alignment follow the named format.
Consider an original hypothetical monochrome image with 1,024 columns and 768 rows. It contains 786,432 pixels. Assume no row padding, metadata, compression, headers, or other overhead.
At eight bits per pixel, its pixel payload is 786,432 bytes. At twelve packed bits per pixel, it is 1,179,648 bytes. At sixteen storage bits per pixel, it is 1,572,864 bytes.
The twelve-bit unpacked case can therefore occupy the last size while carrying twelve meaningful bits in each pixel. These are payload calculations under stated assumptions, not measured network traffic or a camera bandwidth guarantee.
A reader needs the actual format
Two adjacent packed pixels cannot generally be interpreted as two ordinary sixteen-bit integers. Conversely, treating a sixteen-bit buffer as eight-bit pixels can change both the apparent image shape and the values seen by software.
Even within a wider container, meaningful bits may have a defined alignment. A numerical threshold applied without that definition can refer to a different effective brightness level from the one intended. The exact format specification supplies that interpretation.
This is why the data record should preserve the output format and any subsequent conversion. A filename extension or array type does not, by itself, identify the earlier sensor setting or explain how values were rescaled.
Display appearance is another transformation
A program may map a broad source range into the smaller range used by a preview. Two files with different retained codes can look similar after display scaling. One file can also look different under two contrast mappings without any change to the stored observations.
For a hypothetical robot threshold comparison, preserving the original codes allows the effect of a display change to be distinguished from a change in input data. A brighter preview does not demonstrate that a saturated highlight or discarded code difference was recovered.
Keep the chain attached to the number
The useful account identifies the acquisition depth where known, processing conversions, transmitted format, storage layout, and display mapping. It then describes which values were retained rather than inferring them from container width.
The invented conversion makes the central limitation explicit: once several source values have become the same output, widening that output cannot distinguish them again. Storage efficiency and information preservation are related engineering choices, but their bit counts answer different questions.
Image note: The accompanying site-library inspection-camera and display scene is a concept illustration. It is not a camera format test, a measured dynamic-range result, or an example of the hypothetical code conversion.
Sources checked October 23, 2026:
Basler, Pixel Format, documentation version 137:
https://docs.baslerweb.com/pixel-format
Basler, Sensor Bit Depth, same accessed documentation release:
https://docs.baslerweb.com/sensor-bit-depth
All grayscale values, payload sizes, conversion examples, and interpretation: original ZHILIANHAI editorial analysis.