I have now added a small script called camera_pose_and_intrinsics_example.py to show an example of how to use the intrinsic camera matrix. It takes a trajectory from the val set ('0/68') with a known center for a spherical light positioned in world coordinates ([-2.02838,1.57111,-0.388005,1.0]).
It uses the camera view data to transform the 3D point into camera coordinates, and then projects the transformed point into pixels using the intrinsic matrix. It writes out modified frames of the trajectory in the same directory with a black cross over the center of the light (whenever the light is in frame).
I hope this clarifies the camera projection function.
The camera is a simple pinhole camera. The intrinsic camera matrix is:
I have now added a small script called
camera_pose_and_intrinsics_example.py
to show an example of how to use the intrinsic camera matrix. It takes a trajectory from the val set ('0/68') with a known center for a spherical light positioned in world coordinates([-2.02838,1.57111,-0.388005,1.0])
.It uses the camera view data to transform the 3D point into camera coordinates, and then projects the transformed point into pixels using the intrinsic matrix. It writes out modified frames of the trajectory in the same directory with a black cross over the center of the light (whenever the light is in frame).
I hope this clarifies the camera projection function.