How meteor0108/colorized-3d-mapping works
This repository is an offline multi-sensor 3D-mapping pipeline: rosbag or extracted sensor data is prepared and checked, navigation and calibration are reviewed, and LiDAR points are colorized using camera imagery. Dynamic-object removal is an optional pre-pass. The resulting map branches into classical LiDAR meshing and Gaussian Splatting reconstruction, with rendering, viewing, and depth-fusion capabilities. README descriptions establish the main stage relationships; internal helper connections are limited to those shown in the sampled source index or excerpts.
Main entry points: step2_colorize_folder.py LiDAR-camera colorization · step_pre1_extract_rosbag.py Bag extraction · step8_mesh_gaussian.py 2DGS training and mesh · step_pre1_extract_native.py Native-rate extraction
Components 34
Data preparation
- Bag extraction
src/pipeline/step_pre1_extract_rosbag.py - Native-rate extraction
src/pipeline/step_pre1_extract_native.py - Timestamp conversion
src/pipeline/step_pre1b_timestamp_convert.py - Topic CSV export
src/pipeline/step_pre1c_rosbag_to_csv.py - Dataset validation
src/pipeline/step_pre2_validate_dataset.py - Timestamp visualization
src/pipeline/step_pre3_timestamp_viz.py
Trajectory and color
- Navigation views
src/pipeline/step1_nav_reader_plot.py - Projection and map checks
src/pipeline/step0_projection_show.py - LiDAR-camera colorization
src/pipeline/step2_colorize_folder.py - VGICP and PGO colorization
src/pipeline/step5_colorize_vgicp_pgo.py - Dynamic masking
src/pipeline/step_pre_dynmask.py - Image inpainting
src/pipeline/step_pre_inpaint.py
Shared processing
- Sensor calibration
src/common/calibration.py - Configuration loading
src/common/config_loader.py - Point-cloud projection
src/common/pointcloud_processor.py - Timestamp parsing
src/common/timestamp_parser.py - Sensor file matching
src/common/file_manager.py - VGICP alignment
src/pgo/vgicp_aligner.py - Pose graph optimization
src/pgo/pose_graph_optimizer.py
Classical mesh
- NKSR meshing
src/pipeline/step6_mesh_nksr.py - Poisson meshing
src/pipeline/step7_mesh_poisson.py - Mesh post-processing
src/pipeline/step6_mesh_post_process.py - Dense LiDAR meshing
src/pipeline/step9_mesh_lidar_dense.py - Refined textured mesh
src/pipeline/step9b_dense_refined_textured.py - GS texture baking
src/pipeline/step9c_texture_bake.py
Gaussian reconstruction
- GS dataset preparation
src/pipeline/step7b_prepare_gs_dataset.py - Dense GS dataset
src/pipeline/step7c_prepare_gs_dense.py - 2DGS training and mesh
src/pipeline/step8_mesh_gaussian.py - 2DGS backbone adapter
src/pipeline/gs_backbone_2dgs.py - 3DGS backbone adapter
src/pipeline/gs_backbone_3dgs.py - Depth-supervised 3DGS
src/pipeline/step13_gsplat_depth.py - GS video rendering
src/pipeline/step10_render_gs_video.py - 3DGS flythrough
src/pipeline/step11_3dgs_flythrough.py
Other components
- ROS bag
Connections 32
- ROS bag → Bag extraction: extracts sensors
- ROS bag → Native-rate extraction: extracts native rate
- Bag extraction → Dataset validation: checks dataset
- Bag extraction → Timestamp conversion: reindexes timestamps
- Bag extraction → Topic CSV export: exports topics
- Bag extraction → Timestamp visualization: visualizes timestamps
- Dataset validation → Navigation views: prepares sensor data
- Navigation views → LiDAR-camera colorization: provides trajectory context
- Projection and map checks → LiDAR-camera colorization: checks projection
- LiDAR-camera colorization → VGICP and PGO colorization: supports batch alignment
- Dynamic masking → LiDAR-camera colorization: masks fusion input
- Image inpainting → LiDAR-camera colorization: supplies inpainted images
- LiDAR-camera colorization → NKSR meshing: feeds LiDAR reconstruction
- LiDAR-camera colorization → Poisson meshing: feeds merged point clouds
- Native-rate extraction → Dense LiDAR meshing: supplies native-rate scans
- Poisson meshing → Mesh post-processing: supports mesh cleanup
- Dense LiDAR meshing → Refined textured mesh: refines scan poses
- Poisson meshing → GS texture baking: provides LiDAR geometry
- LiDAR-camera colorization → GS dataset preparation: prepares reconstruction input
- Native-rate extraction → Dense GS dataset: supplies dense scans
- GS dataset preparation → 2DGS training and mesh: trains from dataset
- Dense GS dataset → 2DGS training and mesh: provides dense dataset
- 2DGS training and mesh → 2DGS backbone adapter: uses adapter
src/pipeline/step8_mesh_gaussian.py - 2DGS training and mesh → Depth-supervised 3DGS: offers alternate depth track
- 2DGS training and mesh → GS video rendering: renders trained model
- Depth-supervised 3DGS → 3DGS backbone adapter: uses 3DGS rendering
- 3DGS backbone adapter → 3DGS flythrough: supports flythrough
- Configuration loading → Sensor calibration: builds calibration
src/common/calibration.py - Sensor file matching → Timestamp parsing: parses file times
src/common/file_manager.py - VGICP and PGO colorization → VGICP alignment: aligns scan windows
src/pipeline/step5_colorize_vgicp_pgo.py - VGICP and PGO colorization → Pose graph optimization: optimizes poses
src/pipeline/step5_colorize_vgicp_pgo.py - LiDAR-camera colorization → Point-cloud projection: projects points
src/common/pointcloud_processor.py