How weidong-whu/3dlineresconstruction works
ELSRPP_MULTI reconstructs 3D line segments from multi-view imagery and SfM camera results. The principal workflow starts with either VisualSFM or Pixel4D input, loads image/SfM data, detects 2D lines, matches lines across image pairs, then merges and clusters reconstructed 3D lines; the README highlights adaptive clustering and geometrically consistent triangulation. The graph preserves these documented stages and detector options. Some internal call paths are unsampled, so those relationships are dashed and marked without evidence rather than presented as verified calls.
Main entry points: callELSRPP.cpp ELSRPP workflow · PairMatch.cpp Pair matching · SingleImage.cpp Image line extraction · LineCluster.cpp 3D line clustering
Components 17
Inputs and SfM
- VisualSFM input
ELSRPP_MULTI/visualSFM/main_visualSFM.cpp - Pixel4D input
ELSRPP_MULTI/pixel4D/main_pixel4D.cpp - SfM data
ELSRPP_MULTI/ELSRPP/src/SfMManager.cpp
Line detection and matching
- ELSRPP workflow
ELSRPP_MULTI/ELSRPP/src/callELSRPP.cpp - Image line extraction
ELSRPP_MULTI/ELSRPP/src/SingleImage.cpp - LSD detector
ELSRPP_MULTI/ELSRPP/src/line_detector/LSD.cpp - Ag3line detector
ELSRPP_MULTI/ELSRPP/src/line_detector/ag3line/ag3line_go.cpp - EDLines detector
ELSRPP_MULTI/ELSRPP/src/line_detector/EDLineDetector.cpp - Pair matching
ELSRPP_MULTI/ELSRPP/src/PairMatch.cpp - Homography matching
ELSRPP_MULTI/ELSRPP/src/FindHomography.cpp - Match manager
ELSRPP_MULTI/ELSRPP/src/MatchManager.cpp
3D reconstruction
- Pairwise line geometry
ELSRPP_MULTI/ELSRPP/src/PairWiseLines.cpp - Line sweep merge
ELSRPP_MULTI/ELSRPP/src/LineSweep.cpp - 3D line clustering
ELSRPP_MULTI/ELSRPP/src/LineCluster.cpp - Geometry utilities
ELSRPP_MULTI/ELSRPP/src/BasicMath.cpp
Analysis and output
- SfM analysis
ELSRPP_MULTI/ELSRPP/src/sfm_analysis.cpp
Other components
- User
Connections 20
- User → VisualSFM input: selects input
- User → Pixel4D input: selects input
- VisualSFM input → ELSRPP workflow: calls workflow
ELSRPP_MULTI/visualSFM/main_visualSFM.cpp - Pixel4D input → ELSRPP workflow: calls workflow
ELSRPP_MULTI/pixel4D/main_pixel4D.cpp - ELSRPP workflow → SfM data: uses SfM data
- ELSRPP workflow → Image line extraction: runs extraction
- Image line extraction → LSD detector: uses detector
ELSRPP_MULTI/ELSRPP/src/SingleImage.cpp - Image line extraction → Ag3line detector: uses detector
ELSRPP_MULTI/ELSRPP/src/SingleImage.cpp - Image line extraction → EDLines detector: uses detector
ELSRPP_MULTI/ELSRPP/src/SingleImage.cpp - ELSRPP workflow → Pair matching: runs matching
- Pair matching → Homography matching: uses geometry
ELSRPP_MULTI/ELSRPP/src/PairMatch.cpp - Pair matching → Match manager: records matches
- Pair matching → SfM data: reads cameras
ELSRPP_MULTI/ELSRPP/src/PairMatch.cpp - ELSRPP workflow → Line sweep merge: runs merging
- Line sweep merge → Match manager: reads matches
- ELSRPP workflow → 3D line clustering: runs clustering
- 3D line clustering → Line sweep merge: uses sweep data
- ELSRPP workflow → SfM analysis: runs analysis
- Pair matching → Geometry utilities: uses geometry
ELSRPP_MULTI/ELSRPP/src/PairMatch.cpp - 3D line clustering → Geometry utilities: uses geometry
ELSRPP_MULTI/ELSRPP/src/LineCluster.cpp