Skip to Content

Understanding ICP and NDT

October 13, 2026 by
Leo Drive Teknoloji A.Ş., Sibel Turgut
Assuming that we have successfully reduced a chaotic point cloud into a pristine, deskewed set of points, we face the core problem of LiDAR odometry: figuring out how the robot moved.

Given a newly captured "Source" point cloud S at time t, and a previously captured "Target" point cloud T at time t-1 (or a local map), we want to find the exact 3D transformation T ∈ SE(3) that overlaps S onto T. This process is called Scan-Matching.

1. Point-to-Point and Point-to-Plane ICP

1.1 Point-to-Point ICP

In standard Point-to-Point ICP, the error function we want to minimize is the sum of the squared Euclidean distances between each source point p_i ∈ S and its corresponding closest target point q_i ∈ T.

Mathematically, we are searching for the optimal transformation matrix T^*:

1.2 Point-to-Plane ICP

In Point-to-Plane ICP, we change the rules of the geometry. Instead of forcing a source point to match a specific target point, we force the source point to lie on the flat plane defined by the target point. The error is calculated by projecting the distance vector onto the normal vector using a dot product:

The Magic of the Dot Product: Look closely at that dot product. It only penalizes distance along the normal vector (i.e., perpendicular to the wall). If the source point slides laterally across the face of the wall, the dot product with the normal vector is zero, meaning the mathematical error is zero.

This allows the optimization to beautifully "slide" point clouds along feature surfaces until corners and edges lock them into place, completely bypassing the fact that the LiDAR lasers didn't hit the exact same physical spots.

2. Normal Distributions Transform (NDT)

While Iterative Closest Point (ICP) is the classic approach to scan-matching, it has a significant structural vulnerability: it relies on explicit data association. During every single iteration, the algorithm must perform an expensive k-Nearest Neighbor (k-NN) tree search to figure out which target point matches which source point. If the initial guess is poor, these explicit matches are wrong, and the algorithm diverges.

The Normal Distributions Transform (NDT) solves this by abandoning explicit point matching entirely.

Instead of treating the target map as a rigid collection of millions of distinct dots, NDT compresses the map into a smooth, continuous probability density function (PDF).

2.1 Building the NDT Map (Probability Density Representation)

Before any scan-matching occurs, we must convert our target point cloud T into an NDT map.

Step 1: Voxelization

Just like in spatial downsampling, we divide 3D space into a grid of voxels. However, instead of computing a single centroid for each voxel, we compute the statistical distribution of all points inside it.

Step 2: Mean and Covariance

For a specific voxel containing N points {y_1, ..., y_N}, we calculate the 3D mean vector and the 3x3 covariance matrix:

Step 3: The Gaussian PDF

These two parameters define a 3D Gaussian (Normal) distribution. The probability of measuring a point at any arbitrary spatial location x within that voxel is given by the multivariate normal probability density function:

2.2 The NDT Score Function

Now, a new source point cloud S arrives. To find the optimal pose transformation T, we map every source point p_i into the global frame: x_i = Tp_i.

We figure out which voxel x_i lands in, and evaluate the PDF p(x_i) for that voxel. Our goal is to maximize the sum of all these probabilities, the NDT Score (s):

Summary

We explained the fundamental mechanics of the two primary scan-matching algorithms used in LiDAR odometry to compute 3D transformations: Iterative Closest Point (ICP) and Normal Distributions Transform (NDT).

1. ICP (Geometric Optimization): Relies on explicit data association between source and target clouds. While the naive Point-to-Point method often struggles with local minima, the industry-standard Point-to-Plane approach minimizes error along surface normals. This allows the point clouds to mathematically "slide" along flat planes until corners and edges lock into the correct alignment.

2. NDT (Statistical Optimization): Bypasses the computationally expensive point-matching step of ICP entirely. It voxelizes the target cloud and computes the mean and covariance for each grid space, transforming the map into a continuous probability density function (PDF). The algorithm then aligns the source cloud by finding the transformation that maximizes the statistical probability (the NDT Score) of the points landing within these Gaussian distributions.

Ultimately, while ICP achieves alignment by minimizing geometric distances, NDT accomplishes the same goal by maximizing statistical probabilities.

3D Point Cloud Preprocessing for SLAM