Open In Github
C++ code to try to modernize the original Line Segment Detect code
Line Detection Comparison
Image comparison between pytlsd C++ (left) and Opencv C++ (right).
Table with the comparison (ms) of the different parts of the code:
OpenCV (C++) | pytlsd (C++) | lsd_modern | |
---|---|---|---|
Gaussian Blur | 0.5 | 43 | 8 |
Gaussian Downsample | 1.5 | 31 | 10 |
Total | 48 | 214 |
For a more detailed comparison check the COMPARISONS.md file.
Ref:
- LSD paper: LSD: A Line Segment Detector
- Original C code: lsd c code
- pytlsd repo: pytlsd
- Fast Gaussian blur: Fast Gaussian blur
- Separable Convolution: Separable Convolution