-
Notifications
You must be signed in to change notification settings - Fork 2.4k
question about camera intrinsic #399
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
Comments
yeah currently they use projection matrix which assumes it's always the center, but in fact you can get rid of that and instead use |
I would like to ask if I want to add cx and cy, which derivatives of the variables need to be modified? I can see from the code that the derivation process does not seem to require any special modifications. Is there anything I haven't noticed? |
yes, there is no need to modify any derivations. just modify the getProjectionMatrix by using the intrinsics K. For the details refer this link https://stackoverflow.com/questions/22064084/how-to-create-perspective-projection-matrix-given-focal-points-and-camera-princ. I hope this can help. |
@Octweiyi yes, you are right, I checked it and found that you can replace the projection matrix with
also |
It feels like there is a small mistake in your equation @kwea123:
When |
I wanted to ask one more thing: Won't the camera intrinsics be scaled when the resolution is scaled? I didn't find any code which recomputes the |
@cs-mshah |
Image projection function in camera coordinates : u = fx * x + cx, the derivative du/dx = fx is independent with cx. For cy, the same logic applies. |
Hi,
Thank you so much for sharing this amazing work!! I have a quick question about the camera intrinsics that are being used when rendering. Do you assume the c_x and c_y are always at the center of the image (width / 2, height / 2)?
Thank you!
Meida Chen
The text was updated successfully, but these errors were encountered: