CLI Patch Command Reference
The ign-lidar patch command generates machine learning training patches from processed LiDAR point clouds.
Syntaxβ
ign-lidar patch [OPTIONS] INPUT_PATH OUTPUT_PATH
Basic Usageβ
Generate Standard Patchesβ
ign-lidar patch enriched_data.las training_patches.h5
Custom Patch Sizeβ
ign-lidar patch --patch-size 64 --overlap 0.3 input.las patches.h5
Command Optionsβ
Patch Generationβ
--patch-sizeβ
Size of square patches in points.
Default: 32
--overlapβ
Overlap between adjacent patches (0.0-1.0).
Default: 0.5
--min-pointsβ
Minimum points required per patch.
Default: 100
Output Optionsβ
--output-formatβ
Output format for patches.
Options: h5, npz, pkl
Default: h5
--augmentationβ
Enable data augmentation.
Processing Optionsβ
--batch-sizeβ
Processing batch size.
Default: 10000
--num-workersβ
Number of parallel workers.
Examplesβ
Basic Patch Generationβ
ign-lidar patch --patch-size 48 --overlap 0.4 input.las patches.h5
High-Quality Training Dataβ
ign-lidar patch \
--patch-size 64 \
--overlap 0.3 \
--min-points 200 \
--augmentation \
input.las training_data.h5
Related Commandsβ
ign-lidar enrich- Enrich point cloudsign-lidar download- Download tiles