~ / research /

Quality Metric for Aligned Point Clouds

Point cloud registration, aligning two or more clouds into one, sits underneath 3D reconstruction, object recognition and robot localization. Whatever a system does next with the merged cloud is only as accurate as that alignment, so a pipeline needs a way to measure registration quality rather than assume it.

Most pipelines score an alignment with a sum of squared point-to-point or point-to-plane distances. This work builds instead on the reprojection-based alignment quality metric introduced by Igor Bogoslavskyi and Cyrill Stachniss, adapted to the dense, static scans in our metrology cell.

Takeaway. The metric returns a score between 0 and 1. In practice, around 0.8 indicates a good alignment, and the score drops quickly under even small translation or rotation errors, which is exactly the sensitivity you want from a gate that decides whether to trust an alignment.

Context

Iterative Closest Point (ICP) is one of the most successful registration algorithms. It aligns two clouds by repeatedly minimizing the distance between corresponding points, and its residual is the usual measure of how well it did. But alignment quality depends on point density, noise and the algorithm's tuning parameters, so the same residual can mean very different things for different scans.

Two pairs of red and blue car point clouds: on the left, marked with a thumbs-up, the clouds overlap cleanly; on the right, marked with a thumbs-down, the blue cloud is visibly offset.
A good alignment (left) and a bad one (right) of the same pair of car scans.

Standard measures such as the Mahalanobis, Hausdorff and Chamfer distances share this problem: their values are not comparable across clouds with different densities and noise levels, which makes them poor thresholds for deciding whether an alignment is good enough.

Approach

The metric is agnostic to the alignment method, as long as the method returns the 3D transformation between the sensor poses at scan time. Unlike Bogoslavskyi and Stachniss, I designed it specifically for static environments and dense point clouds.

A blue point cloud C1 projected through rays onto an image plane I11 in front of the sensor origin O1.
Projecting cloud $C_1$ onto the image plane of its own sensor origin $O_1$ produces the depth image $I_{11}$.

Each cloud is projected onto an image plane defined at each cloud's coordinate frame. Two clouds and two frames give four depth images, $I_{11}$, $I_{12}$, $I_{21}$ and $I_{22}$, where $I_{ci}$ is the projection of cloud $C_c$ onto the image plane of origin $O_i$. Each pixel of $I_{ci}$ stores the distance between a 3D point of $C_c$ and the origin $O_i$.

Two point clouds C1 and C2 with sensor origins O1 and O2, shown before and after alignment, with the four projected depth images I11, I12, I21 and I22 marked at each origin.
After alignment, both clouds are projected into both sensor frames, giving the four depth images $I_{11}$, $I_{21}$ (at $O_1$) and $I_{12}$, $I_{22}$ (at $O_2$).

The metric compares $I_{11}$ with $I_{21}$, and $I_{12}$ with $I_{22}$. For each eligible pixel, it estimates the probability that the two depth values are reprojections of the same physical point, which gives an array of votes. Opinion pooling turns those votes into a single score between 0 and 1: the higher the value, the better the alignment.

An aligned point cloud of the printed specimen in blue and green between two sensor origins, above four colored depth images labelled I11, I21, I12 and I22.
The metric on a real scan pair: the aligned specimen cloud, and the four depth images it compares.

To test sensitivity, I took an ICP alignment and introduced unit translation and rotation errors. The score peaks at zero error and falls off sharply on either side; even a slight misalignment shows up immediately.

Line plot titled Metric Sensitivity to Error: assigned confidence peaks just above 0.8 at zero error and falls toward 0.3 at plus and minus one unit, with a shaded band; below, three renders of the specimen show red misaligned regions on either side of a well-aligned green one.
Assigned confidence against injected error. The score peaks above 0.8 for the correct alignment and drops quickly as error grows in either direction; the renders below show the corresponding alignments.

Implementation

The metric is implemented in Python with Open3D and our in-house ROS bindings for point cloud data, and it runs inside the pose-estimation pipeline as its confidence stage. Capturing the rough scan takes 3.3 seconds on average, quality assignment returns in under 5 seconds, and the full pipeline produces a pose estimate with its confidence in under 8 seconds. It is available as a ROS node for ROS-based systems.

Photo of the white printed specimen on the turntable with an overlay showing the estimated 4x4 pose transformation matrix and a confidence of 0.8376.
Output on a real part: the estimated pose transformation and its assigned confidence of 0.8376.

Next, I plan to move feature extraction and alignment to the Point Cloud Library (PCL). Feature extraction in particular is well suited to the GPU. The goal is a pose estimate rate of 1 Hz or better, fast enough for real-time quality analysis in dynamic environments.