8000 LSD: making the AGPL dependency optional by zap150 · Pull Request #2578 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Dismiss alert

LSD: making the AGPL dependency optional #2578

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 27, 2024
Merged

Conversation

zap150
Copy link
Contributor
@zap150 zap150 commented May 27, 2024

While Colmap itself is licensed with the permissive BSD license, the LSD dependency is AGPL. This basically means that any binary stemming from the codebase is AGPL as well, and thus cannot be used e.g. commercially. Other optional dependencies look okay (please correct me if I am wrong, e.g. CGAL can be turned off).

In this pull request I added the option to exclude LSD (similarly as can be done for CGAL). This affects the model_orientation_aligner module by removing the MANHATTAN-WORLD option.

The PR is related to issue #752. A possible alternative could be to use OpenCV solution (see the issue above and https://github.com/opencv/opencv/blob/2cd330486ec4597eab49c1575fc4a6603f205a6a/modules/imgproc/src/lsd.cpp#L167). OpenCV excluded this part for while, the re-added LSD after its crucial part https://github.com/rafael-grompone-von-gioi/binomial_nfa had been relincesed. I have also contacted the author of LSD (https://github.com/theWorldCreator/LSD) but got no response.

@ahojnnes
Copy link
Contributor

Thank you very much for disentangling the LSD dependency through a compile time option. The code changes look good to me.

@ahojnnes
Copy link
Contributor

@zap150 You would need to run code formatting (scripts/format/clang_format.sh) to appease the CI checks.

@zap150
Copy link
Contributor Author
zap150 commented May 27, 2024

@zap150 You would need to run code formatting (scripts/format/clang_format.sh) to appease the CI checks.

Should be ready now, I used clang-format 14.0.6, hopefully this will be sufficient (had to locally modify the script).

@ahojnnes ahojnnes mentioned this pull request May 27, 2024
@ahojnnes ahojnnes enabled auto-merge (squash) May 27, 2024 11:07
@ahojnnes ahojnnes merged commit 774d88b into colmap:main May 27, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0