-
Notifications
You must be signed in to change notification settings - Fork 29
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
Adding new cameras #11
Comments
To add a new camera model, you need to create a new Lines 539 to 547 in a7ef2cf
Then you need to register it: Lines 770 to 774 in a7ef2cf
The camera needs to implement:
|
@sarlinpe perfect, thank you |
Thanks for the great work, I really appreciate it. I also plan to implement a custom camera model with more distorted coeffs (with approximated undistortion). If I implement the mentioned jacobians wrt. 'dist', is it sufficient to return the jac vector for all coeffs (k1, .....kn) as vector? Or should we handle them separately? In both SimpleRadial and SimpleDivisional there is only one k1 for distortion param, so maybe other parts of the code use this fact, that's why I'm a bit uncertain if it is sufficient to implement a new cameramodel. |
The current implementation primarily assumes a single-parameter distortion model. However, most parts of the code should generalize well to higher-order distortion models that follow the form: In this case, the Jacobians should work correctly if you return the Jacobian vector for all coefficients when implementing wrt=dist. That said, there are a few areas that may require adjustments for higher-order distortions, such as this section. These should be relatively straightforward to identify and modify once the new camera model is in place. |
Hi, thanks for the great work. I am curious about adding a new camera model (higher order distortion terms). There are a few parts in the code I'm not particularly sure of. Would you be able to shed some light on the steps needed to add a new model? E.g. using more radial distortion parameters
The text was updated successfully, but these errors were encountered: