﻿# BOP pose geometry: model-to-camera transforms and depth scale must agree

Trace BOP model-to-camera rotation, translation units, per-image intrinsics and depth scaling before blaming a pose estimator for projection or registration errors.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-bop-model-to-camera-depth-scale-millimeter-contract/
Language: en

## Diagnose geometry before adjusting the estimator

A projected object outline lands near the correct image location, but its depth is far from the scene surface. The error can originate in a mixed-unit transform rather than a weak pose network. Preserve the direction and physical units of each quantity before composing it. A successful matrix multiplication only confirms compatible shapes; it does not establish that object coordinates, translation and measured depth describe the same geometry.

## Read the model-to-camera contract

The [BOP format specification](https://raw.githubusercontent.com/thodan/bop_toolkit/master/docs/bop_datasets_format.md) defines object rotations and translations that map model coordinates into camera coordinates. It specifies millimeter units for model geometry and translations, while image depth requires its declared scale. Keep these conventions together. If a downstream library expects meters, convert both model vertices and translation consistently. Converting only the translation produces a different object relative to its camera even though the rotation and identifiers remain unchanged.

## Separate depth loading from depth interpretation

The [toolkit input implementation](https://raw.githubusercontent.com/thodan/bop_toolkit/master/bop_toolkit_lib/inout.py) reads depth image values. Reading the raster and assigning a floating-point type do not by themselves establish a physical unit conversion. Apply the image’s documented depth scale at the correct stage and record whether a local cache already applied it. A second conversion or an omitted conversion can make registration fail systematically while leaving the depth map visually convincing under automatic display normalization.

## Use the matching projection inputs

The [toolkit geometry implementation](https://raw.githubusercontent.com/thodan/bop_toolkit/master/bop_toolkit_lib/misc.py) provides point transformation and projection operations. Match their inputs to the selected image’s camera metadata rather than assuming one generic camera matrix for every crop. Keep any later resize or crop associated with adjusted intrinsics. A correct pose expressed in the correct units can still project incorrectly if the camera parameters refer to a different image representation.

## Verify a diagnostic point in both spaces

Trace an object point into camera space, inspect its physical depth, then project it into the image. Compare this sequence with the selected depth observation and object mask before evaluating the whole estimator. [Image coordinate guidance](/journal/data-guide-image-exif-box-coordinate/) covers representation changes; [software reproducibility](/journal/software-stack-reproducibility/) preserves conversion code. Report transform direction, unit conversion, depth scale and intrinsics provenance as part of the pose experiment. This makes a geometry failure distinguishable from an actual change in learned pose quality.
