Skip to content
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

Add ReprojErrorConstantPoint3DCostFunction to speed up the RefineAbsolutePose function #2089

Merged
merged 12 commits into from
Aug 3, 2023

Conversation

whuaegeanse
Copy link
Contributor

@whuaegeanse whuaegeanse commented Aug 1, 2023

Add a new costfunction-ReprojErrorConstantPoint3DCostFunction to speed up the RefineAbsolutePose function.

@ahojnnes
Copy link
Contributor

ahojnnes commented Aug 1, 2023

Thanks. How much faster is this in practice for the two proposed changes?

@ahojnnes ahojnnes self-requested a review August 1, 2023 14:48
src/colmap/estimators/cost_functions.h Outdated Show resolved Hide resolved
src/colmap/estimators/cost_functions.h Outdated Show resolved Hide resolved
@whuaegeanse
Copy link
Contributor Author

whuaegeanse commented Aug 1, 2023

Thanks. How much faster is this in practice for the two proposed changes?

The average speed up is about 12%.

The time taken by both methods is output in SpeedUpLog.txt in the following format.
num points:780, old:7204.000000, new: 7084.000000
SpeedUpLog.txt

CSV format:
SpeedUp.csv

@ahojnnes
Copy link
Contributor

ahojnnes commented Aug 2, 2023

Could you please add a unit test for this new cost function in the cost_function_test.cc file? Thanks.

@whuaegeanse
Copy link
Contributor Author

whuaegeanse commented Aug 2, 2023

Could you please add a unit test for this new cost function in the cost_function_test.cc file? Thanks.

My pleasure.

@ahojnnes ahojnnes merged commit 1dc8e37 into colmap:dev Aug 3, 2023
11 checks passed
@whuaegeanse whuaegeanse deleted the const_point branch August 5, 2023 17:22
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.

None yet

2 participants