How sjtuzhou/3d-teeth-reconstruction-from-five-intra-oral-images works
Smartee reconstructs upper and lower 3D teeth from five intra-oral photographs using segmentation, statistical shape priors, and staged multi-view optimization. The principal runtime begins at main.py, which combines predicted tooth boundaries with the five-view optimizer and exports reconstructed meshes; visualization projects results back onto photographs. The README also documents separate segmentation training and SSM preprocessing workflows. Edges rely on README statements and SOURCE INDEX references; unsampled implementation details are not asserted.
Main entry points: main.py Reconstruction runner · run_train.py Segmentation training · visualization.py Photo projection · cpdGp_align_ssm.py SSM preprocessing
Components 20
Boundary Segmentation
- Boundary prediction
seg/utils.py - ASPP U-Net
seg/seg_model.py - Segmentation training
seg/run_train.py - Training data pipeline
seg/seg_data.py - Dice-SSIM loss
seg/seg_loss.py - Segmentation settings
seg/seg_const.py
Shape Modeling
- SSM preprocessing
cpdGp_align_ssm.py - Gaussian-process registration
gp_non_rigid_registration.py - Shape-model utilities
ssm_utils.py
Reconstruction
- Reconstruction runner
main.py - Photo and model settings
const.py - Five-view EM optimizer
emopt5views.py
Evaluation and Views
- Point-cloud and mesh tools
pcd_mesh_utils.py - Reconstruction metrics
recons_eval_metric.py - Photo projection
visualization.py - Reconstruction results
demo/h5 - Predicted tooth meshes
demo/mesh
Other components
- Clinician / user
- Five photos
- Reconstruction viewer
Connections 22
- Clinician / user → Five photos: supplies
readme.md - Five photos → Reconstruction runner: provides inputs
readme.md - Reconstruction runner → Photo and model settings: loads settings
main.py - Reconstruction runner → Boundary prediction: predicts boundaries
main.py - Boundary prediction → ASPP U-Net: uses model
main.py - Reconstruction runner → Five-view EM optimizer: optimizes views
main.py - SSM preprocessing → Gaussian-process registration: registers shapes
cpdGp_align_ssm.py - SSM preprocessing → Point-cloud and mesh tools: uses point-cloud tools
cpdGp_align_ssm.py - SSM preprocessing → Shape-model utilities: builds shape model
cpdGp_align_ssm.py - Reconstruction runner → Reconstruction results: saves results
main.py - Reconstruction runner → Point-cloud and mesh tools: constructs meshes
main.py - Reconstruction runner → Reconstruction metrics: evaluates results
main.py - Reconstruction runner → Predicted tooth meshes: exports meshes
main.py - Segmentation training → Training data pipeline: loads batches
seg/run_train.py - Segmentation training → ASPP U-Net: trains model
seg/run_train.py - Segmentation training → Dice-SSIM loss: optimizes loss
seg/run_train.py - Training data pipeline → Segmentation settings: reads settings
seg/seg_data.py - Segmentation training → Segmentation settings: reads settings
seg/run_train.py - Reconstruction viewer → Photo projection: requests projection
readme.md - Photo projection → Reconstruction results: reads reconstruction
- Photo projection → Five photos: projects onto photos
readme.md - Photo projection → Predicted tooth meshes: renders meshes