Cloud–cloud distance (C2C, M3C2)
Computes, for each point of the compared cloud, the distance to the reference cloud and stores it as a scalar field; for change analysis and consistency checks.
In the app: Processing › Distance › Cloud–cloud distance…
What does it do?
C2C: distance to the nearest reference point; optionally signed relative to the reference normal (+ above). Local model: distance to the plane fitted to the nearest k reference points; more accurate with a sparse reference. M3C2: on core points, the mean position difference of the two clouds inside a cylinder of diameter d along the normal at scale D; M3C2 LoD95 (95% detection limit) and M3C2 significant (1 = |distance| > LoD95) are also written, and values are passed from the nearest core point to all points.
Alignment transforms in memory are taken into account. Summary: mean, median, std, RMS, minimum / maximum and the percentages with |d| < 0.05 / 0.10 / 0.50 m (for M3C2, the core point count and the percentage of significant change). A signed result is shown with the Blue–White–Red scale, an unsigned one with the Rainbow scale.
How to use it
- 1If needed, first align the clouds with coarse alignment and ICP.
- 2Open Processing → Distance → Cloud–cloud distance…; choose the compared and reference clouds.
- 3Enter the method and its parameters, then click Calculate.
- 4Read the summary; export the field with Processing → Geometry → Scalar fields….
Parameters
| Setting | What it does | Default |
|---|---|---|
| Compared: | The cloud that receives the distance. | First cloud |
| Reference: | Must differ from the compared cloud. | Second cloud |
| Method | Nearest neighbor (C2C); Local model (plane through k neighbors); M3C2 (along the normal, with confidence interval). | Nearest neighbor (C2C) |
| Signed (relative to the reference normal; + above) | For C2C. | Off |
| Number of neighbors (k): | Local model; 3–200. | 12 |
| Signed (relative to the upward normal of the local plane) | For the local model. | On |
| Normal scale (D, diameter): | M3C2; 0.05–1000.00 m. | 2.00 m |
| Projection cylinder diameter (d): | M3C2; 0.01–1000.00 m. | 1.00 m |
| Maximum depth: | Extent of the M3C2 cylinder along the normal; 0.01–10000.00 m. | 5.00 m |
| Core point spacing: | Core points are thinned to this spacing; 0–1000.00 m, 0 = all points. | 1.00 m |
| Alignment error (added to LoD): | M3C2; 0–100.000 m. | 0.000 m |
| Make normals vertical (Z) | The Z axis is used as the M3C2 normal. | Off |
| Maximum distance: | Farther points get no value (C2C / local model); 0–100000.00 m, 0 = unlimited. | 0.00 m |
| When finished, show the distance field as color | The result opens in Scalar mode. | On |
Outputs
- C2C distance / Local model distance / M3C2 distance scalar field (m), on the compared cloud
- M3C2 LoD95 (m) and M3C2 significant (0 / 1) fields
- Summary statistics and below-threshold percentages
Tips
- Use M3C2 for change monitoring; entering ICP's final RMS as the alignment error makes the significance test realistic.
- There is no class filter; to compare ground only, first export the ground points to a separate file.
- On large clouds enter a maximum distance: only the surroundings of the compared cloud are read from the reference.