How ethanhe42/3d-reconstruction works
This MATLAB application reconstructs a 3D point cloud from two views. Users can run the bundled datasets through main.m or provide a pair of images and camera intrinsics to SfM2.m. The documented workflow covers feature detection and matching, robust fundamental-matrix estimation, camera-pose recovery, dense matching, triangulation, and PLY output, with optional model display. The README documents these stages but no source excerpts were available, so edges are based on its workflow description rather than verified call sites.
Main entry points: SfM2.m Two-view reconstruction · main.m Dataset runner · imgs Camera intrinsics · result PLY point clouds
Components 13
Entry points
- Dataset runner
main.m - Two-view reconstruction
SfM2.m
Image geometry
- Feature detection
getSIFTFeatures.m - Feature matching
matchFeaturePoints.m - Robust F estimation
MSAC.m - Eight-point estimation
eightPoint.m - Pose recovery
motionFromF.m
3D reconstruction
- Dense matching
getMatches.m - Triangulation
mytriangualation.m - Model display
SfM2.m
Inputs and outputs
- Camera intrinsics
imgs - PLY point clouds
result
Other components
- User
Connections 14
- User → Dataset runner: runs datasets
README.md - User → Two-view reconstruction: provides image pair
README.md - User → Camera intrinsics: provides calibration
README.md - Two-view reconstruction → Camera intrinsics: loads intrinsics
README.md - Two-view reconstruction → Feature detection: detects features
README.md - Two-view reconstruction → Feature matching: matches features
README.md - Two-view reconstruction → Robust F estimation: estimates F
README.md - Two-view reconstruction → Eight-point estimation: estimates F
- Two-view reconstruction → Pose recovery: recovers pose
README.md - Two-view reconstruction → Dense matching: matches densely
README.md - Two-view reconstruction → Triangulation: triangulates points
README.md - Two-view reconstruction → PLY point clouds: saves PLY
README.md - Two-view reconstruction → Model display: optionally displays
README.md - Dataset runner → PLY point clouds: produces clouds
README.md