NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Calculate a voxel's retained centroid when downsampling a point cloud — Stepped terrain

Calculate a voxel's retained centroid when downsampling a point cloud — a worked case for stepped terrain, with explicit data, a sensitivity comparison and an independent evidence check.

Calculate a voxel's retained centroid when downsampling a point cloud — Stepped terrain

The measurement question

Voxel-centroid downsampling replaces points within each occupied three-dimensional cell with their centroid. Suppose one hypothetical voxel contains x coordinates 0.10, 0.14, and 0.22 m, with corresponding y and z coordinates treated in the same way. Its retained x coordinate is 0.15333 m. This differs from using the voxel centre or preserving the first observation. The distinction matters because the output point may be synthetic rather than an original laser return. Choose voxel dimensions according to the features needed downstream, and preserve the full-resolution dataset for measurements or attributes that cannot be meaningfully averaged. A voxel crossing two surfaces may place its centroid between them.

This is an educational case with constructed input data. It is not a report of a completed NiVO project, a flight authorization, a product performance guarantee, or evidence that the photographed location was surveyed for this example.

Case conditions and evidence

The example contains an upper terrace and a lower work surface. A single reference elevation can hide a substantial change in sensor-to-surface distance. Keep the two surfaces separate during the first comparison and identify which height reference was actually used for every recorded observation.

Compare an independently checked location on each terrace. Do not use a point on the upper surface to claim that the lower surface has the same error or observation geometry.

Participants reviewing mapping work at a University of Cantabria mapathon
Participants reviewing mapping work at a University of Cantabria mapathon.Source: Emilio Gómez Fernández · CC BY-SA 4.0

Reproduce the numerical check

Illustrative input data: First point x inside voxel (x1) = 0.102 m; Second point x inside voxel (x2) = 0.14 m; Third point x inside voxel (x3) = 0.22 m; Voxel width (leaf) = 0.5 m.

Calculation: (x1+x2+x3)/3.

Retained voxel centroid x coordinate = 0.154 m.

The calculation below checks one part of the evidence chain. Keep the stated units and assumptions. The output does not replace field observations, the equipment manual, or an independent assessment of the complete deliverable.

Change one assumption

Increase only first point x inside voxel (x1) from 0.102 to 0.1122 m. Re-evaluating the same equation gives retained voxel centroid x coordinate = 0.1574 m. The arithmetic difference from the baseline is 0.0034 m.

For the comparison, only the explicitly listed input changes. All other quantities stay fixed. This isolates the mathematical response; weather, image texture, viewing geometry and equipment behaviour can change together in a real mission, so do not interpret the comparison as a flight test.

Interpret the result

Use centroid downsampling when a reduced geometric representation suits the next operation, and retain original data for traceability. Set voxel dimensions and attribute rules deliberately so small structures and categorical information are not unintentionally averaged away.

A centroid can fall between separate surfaces or outside their actual sampled patches. Leaf size and origin affect grouping, and averaged classifications, timestamps, return numbers, or identifiers may be meaningless even when averaged coordinates remain useful.

Separate an arithmetic result from a verified measurement. A precise number can still be based on an uncertain input. Test the assumption with an independent observation before applying the result to an acceptance decision; retain the original value when the independent check disagrees.

Independent checks and delivery

Select several occupied voxels and recompute coordinate means from their original points. Compare reduced and original profiles near edges and thin objects, recording point counts, cell dimensions, and any attributes whose aggregation or preservation is required.

Package the height reference, the terrace boundary and the observed transition zone. State where the surface was not directly observed and where a model filled a gap.

Deliver the original observations, the calculation inputs, their units, the processing settings and an exception log alongside the interpreted output. A reviewer should be able to repeat the arithmetic and identify which observations support the conclusion. Preserve rejected observations with reasons instead of silently removing them.

Technical references

  1. Point Cloud Library VoxelGrid downsampling ↗
  2. NiVO technical workflow and supporting documentation ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team