コード例 #1
0
 def test_clone(self):
     s = SimpleCameraIntrinsics(
         self.focal_length,
         self.principal_point,
         dist_coeffs=np.array([-0.1, 0.0, 0.0]),
     )
     s_clone = s.clone()
     assert (isinstance(s_clone, SimpleCameraIntrinsics))
     self.assertEqual(s.focal_length(), s_clone.focal_length())
コード例 #2
0
 def test_get_set_focal_length(self):
     s = SimpleCameraIntrinsics()
     s.set_focal_length(self.focal_length)
     self.assertAlmostEqual(s.focal_length(), self.focal_length)