A preview looks clean but two near-black patches become indistinguishable. Examine whether the camera's output has already reduced both to one code. If clipping happened before the host, changing the display curve can turn black gray without restoring detail. If output codes still differ, investigate the preview mapping. Neither case initially calls for a clock change.
Use a fixed uniform dark area and two near-black patches on an owned inspection sample without production or personal imagery. Keep pixel data near camera output and the matching preview. Locate where differences used for shallow marks or dark defects disappear.
A black target need not produce code zero
A camera can introduce an offset after gain, conversion or digital mapping. Dark samples near nonzero values do not necessarily show light leakage or clock error. Leaving room below the dark center can preserve noise distribution on both sides. Pushing the center to zero can clip lower values to zero, and stronger host contrast cannot recover them.
Menu values may be internal increments or channel-specific settings. Preview can include gain, gamma, color conversion and bit-depth reduction. A setting of four need not add four to each eight-bit pixel. Verify format and processing and compare raw histograms from the same region.
Worked example: adding four back does not reverse clipping
In an ideal eight-bit model, subtract 4 from values 2, 3, 5 and 7 to get −2, −1, 1 and 3. Clipping to 0–255 sends 0, 0, 1 and 3 to the host. The original 2 and 3 are now identical. Adding 4 at the host gives 4, 4, 5 and 7, leaving the lost distinction. This illustrates a lower clamp after an offset without prescribing a camera's processing order.
If the host instead receives 2, 3, 5 and 7 and its preview renders everything below 4 as black, acquisition retains the detail. Display mapping can make 2 and 3 distinct again. Save original and preview files for comparison.
| Observation | Investigate | Cannot establish by itself |
|---|---|---|
| Near-black output piles up at zero and preview loses detail | Black level and clamp stage | Oscillator drift or link loss |
| Raw patch distributions differ but previews match | Depth conversion, black point and display curve | Lost sensor detail |
| Same black level name but different startup histograms | Loaded settings, gain and temperature | Same actual processing |
| Dark values remain distinct but highlights pile up at full scale | Lost high-end headroom | Continuing to raise black level helps |
Turn the grayscale card into repeatable acceptance
Hold acquisition fixed. Use a uniform near-black region, at least two distinct dark patches and an unsaturated bright patch. Compare approved black-level settings on offline samples with exposure, gain, lighting, bit depth, crop and temperature held constant. If analysis requires monochrome raw data, avoid producing statistics from an automatic eight-bit preview.
Compare distributions as well as means. Most values can clip to zero while a few nonzero pixels change the mean. Keep zero-code fraction, median, quantiles, bright full-scale fraction and frame variation. If zeros appear only in fixed pixels or edges, check region, defect correction and vignetting. Reuse coordinates and frame count and document automated processing.
If camera output preserves detail but the application loses it, verify independent preview and detector mapping. If camera output clips, test approved alternative parameters or output modes and check highlight headroom. Acceptance needs detection evidence, not appearance alone. State the actual observation boundary if sensor-level data are unavailable.
Keep clock and image acceptance independent
If an image board requires a 25 MHz active CMOS reference, Japan's Epson SG-210STF X1G004171003300 is an example order code. Verify supply, output, receiver load, enable and tolerance. Same frequency alone cannot qualify a substitute. This is not a fitted camera part or a proposal to fix clipping. A passing clock cannot preserve lost pixel codes.
For a camera sample, request unadjusted pixel export, depth and alignment, global or per-channel black control, readback and the configuration used after restart. Verify capability and conditions rather than asking suppliers to use one arbitrary black code. Keep raw image, settings, statistics and clock test together.
Request raw and preview data for the same dark-step pattern. Allow preview adjustment if traceable, while qualifying the defined source endpoint. Where algorithm detection is required, run repeated tests on fixed patches. Record shadow detail, highlight headroom and clock performance separately.
Frequently asked questions
Is every zero in a dark frame a fault? Zero can represent valid black. Check for systematic merging of known near-black levels that the application must distinguish, excluding preview effects.
If raising black level removes zero codes, is detail restored? An offset applied after clipping can move all identical codes together. Compare raw patch distributions and bright saturation.
Do many zero codes prove black level alone caused the issue? Underexposure, depth conversion and nonlinear curves can also merge levels. Compare earlier and later nodes under fixed input and format if accessible, and keep alternative causes open when only the endpoint is visible.
