Skip to content

Latest commit

 

History

History
95 lines (72 loc) · 3.5 KB

pointcloud-classification.md

File metadata and controls

95 lines (72 loc) · 3.5 KB

Point-cloud classification

VEIL treats the rendered twin and the LiDAR evidence as two peer representations:

  • Mesh scene is the normal textured DEM plus rendered tree/building meshes.
  • LiDAR points is the full return cloud, with high-level subsets for ground, ground + vegetation, vegetation, and all returns.

The point viewer never substitutes points for the normal mesh scene. The subset buttons only filter the LiDAR representation.

Classification policy

The production payload uses a conservative open hybrid:

  1. Preserve non-generic survey ASPRS classes.
  2. Run PDAL's full-density Simple Morphological Filter before browser decimation.
  3. Recover a generic return as ground only when SMRF and the twin's authoritative bare-earth DEM agree within 0.5 m.
  4. Use the open IGNF Myria3D implementation and its FRACTAL-LidarHD checkpoint for learned vegetation, building, water, bridge, and permanent-structure semantics.
  5. Split learned vegetation into ASPRS low/medium/high strata using height above the authoritative DEM. Predictions with Shannon entropy above 1.2 use the deterministic height fallback.

FRACTAL is an aerial-LiDAR semantic model trained on a large RGB+NIR dataset; the FRACTAL paper and model card report about 77.5% mIoU and 96.1% overall accuracy on their test domain. Those published figures do not establish accuracy on a new twin, so VEIL records both model provenance and local proxy comparisons in data/pointcloud/manifest.json.

For this twin, source class 2 is only a comparison baseline, not audited truth:

Ground candidate Precision proxy Recall proxy F1 proxy
Full-density SMRF 0.865 0.952 0.906
FRACTAL argmax 0.942 0.842 0.889

That is why the hybrid keeps SMRF for ground and uses FRACTAL for learned above-ground semantics. It does not claim that a benchmark score automatically transfers across sensors, seasons, densities, or biomes.

Build the learned classifications

Requirements:

  • PDAL with LAS, reprojection, colorization, and SMRF support;
  • Docker with NVIDIA GPU support;
  • an aligned four-band RGB+NIR GeoTIFF;
  • an NVIDIA GPU with enough memory for inference.

Build the pinned open Myria3D image:

git clone --depth 1 https://github.com/IGNF/myria3d .tmp/myria3d
git -C .tmp/myria3d checkout fcc22ac32f04380d971f99d6827edc4f0e376e58
docker build --memory=16g -t veil-myria3d:3.9 .tmp/myria3d

Then classify and rebuild the browser payload:

npm run classify-pointcloud -- \
  --rgbnir data/timeseries_staging/naip/naip_2019_rgbn.tif

The command auto-discovers data/lidar/raw/*.{las,laz}, writes data/lidar/classified/fractal_rgbnir.las, records a provenance sidecar, and rebuilds data/pointcloud/points.bin. Inference runs with Docker networking disabled, a 12 GB host-memory cap, one data-loader worker, and automatic container removal.

To use an existing Myria3D-classified LAS directly:

python3 scripts/build_pointcloud.py classified.las \
  --semantic-dimension PredictedClassification \
  --semantic-entropy-dimension entropy

The lightweight open baseline remains available without a GPU:

npm run build-pointcloud

Use --ground-classifier source only when the input ground labels have already been independently validated and no open ground recovery is wanted.