-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
About hard-coded parameters #48
Comments
No. This parameter is just for a virtual camera projection. You don't need to change. |
@qintony Hi, thanks for your quick response. I noticed that FOCAL_LENGTH appear in KeyFrame::FundmantalMatrixRANSAC, and in TemplatedLoopDetector.h as well. I just don't get why this doesn't need to be changed. Can you explain how the virtual camera projection work? Also, should I also keep the ROW and COL in TemplatedLoopDetector.h even though the actual image resolution changes? |
@qintony Hi, I looked in to the code you attached. It seems that the tracked point is first lifted from the image plane to a projective ray(through liftProjective()), and then is projected to a virtual image plane(probably this is what you said as virtual camera projection?). What I am not sure about is that whether the value of FOCAL_LENGTH matters or not? Since the COL and ROW in the attached code are the actual image width and height, could the FOCAL_LENGTH there be changed to the actual focal length(I did some experiments, but it seems the value of FOCAL_LENGTH does influence the performance). |
The focal_length in loop_closure have the same function. |
@qintony Hi, I still have some questions.
|
@qintony Just want you to know that I figured out answers to my questions 1 and 2 yesterday. Still thinking about question 3 though. |
|
@qintony Hi Tong, do you know what is the unit for the acc_w(accelerometer bias random work noise standard deviation) and the gyr_w(gyroscope bias random work noise standard deviation) in the yaml file. Are the units m/s^2/sqrt(s) and rad/s/sqrt(s)? I just want to make sure that I give the right values as input. Thanks in advance. |
@qintonguav ,Hi, why don't you directly use the undistortion functions in Opencv such as undistortPoints(),initUndistortRectifyMap() ? |
Hi,
Thanks for the amazing work. Currently, I am using this code for the initial step to generate tf for my project. One thing I noticed is that FOCAL_LENGTH is hard-coded, and it is assigned 460 in several files. If I use image data from my own camera, should I assume that this value needs to be changed?
Best.
Juncheng
The text was updated successfully, but these errors were encountered: