GRF icon indicating copy to clipboard operation
GRF copied to clipboard

About Intrinsic Matrix

Open GaryGky opened this issue 3 years ago • 4 comments

May I ask how to get the intrinsic matrix of a photo if I want to use my own data to train GRF? And without the intrinsic matrix, will the performance of GRF significantly degrade?

GaryGky avatar Aug 19 '21 14:08 GaryGky

The intrinsic matrix is necessary. So you have the poses but not the intrinsic matrix? If not, you can follow the instructions from NeRF to estimate the camera poses along with the intrinsic using COLMAP, then train GRF using the default LLFF hyperparamaters. To do that, follow the section on generating your own poses from the NeRF repo at https://github.com/bmild/nerf

alextrevithick avatar Aug 24 '21 18:08 alextrevithick

OK. Thank you! May I ask one more thing? I simply use this formula to generate intrinsic which assumes that the camera is without Distortion, is that reasonable?

intrinsic = np.array([[focal, 0., W / 2], [0, focal, H / 2], [0, 0, 1.]])

GaryGky avatar Sep 10 '21 11:09 GaryGky

Seems reasonable to me, assuming the principal point isn't too far from the center.

alextrevithick avatar Sep 12 '21 15:09 alextrevithick

Thank you. I will have a try.

GaryGky avatar Sep 13 '21 03:09 GaryGky