Function cam_geom::intrinsic_test_utils::roundtrip_intrinsics
source · pub fn roundtrip_intrinsics<R, CAM>(
cam: &CAM,
width: usize,
height: usize,
step: usize,
border: usize,
eps: R
)Expand description
Test roundtrip projection from pixels to camera rays for an intrinsic camera model.
Generate pixel coordinates, project them to rays, convert to points on the rays, convert the points back to pixels, and then compare with the original pixel coordinates.