Lines Matching refs:camera

208   EuclideanCamera *camera = &(*all_cameras)[image];  in CameraForImage()  local
209 if (camera->image == -1) { in CameraForImage()
212 return camera; in CameraForImage()
221 const EuclideanCamera *camera = &all_cameras[image]; in CameraForImage() local
222 if (camera->image == -1) { in CameraForImage()
225 return camera; in CameraForImage()
395 EuclideanCamera camera; in ReadProblemFromFile() local
397 camera.image = file_reader.Read<int>(); in ReadProblemFromFile()
398 ReadMatrix3x3(file_reader, &camera.R); in ReadProblemFromFile()
399 ReadVector3(file_reader, &camera.t); in ReadProblemFromFile()
401 if (camera.image >= all_cameras->size()) { in ReadProblemFromFile()
402 all_cameras->resize(camera.image + 1); in ReadProblemFromFile()
405 (*all_cameras)[camera.image].image = camera.image; in ReadProblemFromFile()
406 (*all_cameras)[camera.image].R = camera.R; in ReadProblemFromFile()
407 (*all_cameras)[camera.image].t = camera.t; in ReadProblemFromFile()
613 const EuclideanCamera *camera = CameraForImage(all_cameras, i); in PackCamerasRotationAndTranslation() local
615 if (!camera) { in PackCamerasRotationAndTranslation()
619 ceres::RotationMatrixToAngleAxis(&camera->R(0, 0), in PackCamerasRotationAndTranslation()
621 all_cameras_R_t[i].tail<3>() = camera->t; in PackCamerasRotationAndTranslation()
635 EuclideanCamera *camera = CameraForImage(all_cameras, i); in UnpackCamerasRotationAndTranslation() local
637 if (!camera) { in UnpackCamerasRotationAndTranslation()
642 &camera->R(0, 0)); in UnpackCamerasRotationAndTranslation()
643 camera->t = all_cameras_R_t[i].tail<3>(); in UnpackCamerasRotationAndTranslation()
684 EuclideanCamera *camera = CameraForImage(all_cameras, marker.image); in EuclideanBundleCommonIntrinsics() local
686 if (camera == NULL || point == NULL) { in EuclideanBundleCommonIntrinsics()
692 double *current_camera_R_t = &all_cameras_R_t[camera->image](0); in EuclideanBundleCommonIntrinsics()