Lines Matching defs:camera

54 // Every camera is described by:
56 // - Image for which camera belongs to (single 4 bytes integer value).
57 // - Column-major camera rotation matrix, 9 float values.
79 // line, camera intrinsics will be refined if markers in the problem are
80 // stored in image space and camera intrinsics will not be refined if markers
128 // A EuclideanCamera is the location and rotation of the camera
131 // image identifies which image this camera represents.
132 // R is a 3x3 matrix representing the rotation of the camera.
182 // For example it is useful to keep camera translations constant
202 // Returns a pointer to the camera corresponding to a image.
208 EuclideanCamera *camera = &(*all_cameras)[image];
209 if (camera->image == -1) {
212 return camera;
221 const EuclideanCamera *camera = &all_cameras[image];
222 if (camera->image == -1) {
225 return camera;
352 // camera_intrinsics will contain initial camera intrinsics values.
355 // vector element with number i will contain camera for image i.
387 // Read camera intrinsics.
395 EuclideanCamera camera;
397 camera.image = file_reader.Read<int>();
398 ReadMatrix3x3(file_reader, &camera.R);
399 ReadVector3(file_reader, &camera.t);
401 if (camera.image >= all_cameras->size()) {
402 all_cameras->resize(camera.image + 1);
405 (*all_cameras)[camera.image].image = camera.image;
406 (*all_cameras)[camera.image].R = camera.R;
407 (*all_cameras)[camera.image].t = camera.t;
448 // Apply camera intrinsics to the normalized point to get image coordinates.
450 // camera coordinates (i.e. the principal point is at (0, 0)) to get image
483 // on camera defined by angle-axis rotation and it's translation
545 // Print a message to the log which camera intrinsics are gonna to be optimized.
548 LOG(INFO) << "Bundling only camera positions.";
571 // Print a message to the log containing all the camera intriniscs values.
599 // Get a vector of camera's rotations denoted by angle axis
603 // camera at image i.
613 const EuclideanCamera *camera = CameraForImage(all_cameras, i);
615 if (!camera) {
619 ceres::RotationMatrixToAngleAxis(&camera->R(0, 0),
621 all_cameras_R_t[i].tail<3>() = camera->t;
635 EuclideanCamera *camera = CameraForImage(all_cameras, i);
637 if (!camera) {
642 &camera->R(0, 0));
643 camera->t = all_cameras_R_t[i].tail<3>();
666 // Parameterization used to restrict camera motion for modal solvers.
684 EuclideanCamera *camera = CameraForImage(all_cameras, marker.image);
686 if (camera == NULL || point == NULL) {
690 // Rotation of camera denoted in angle axis followed with
691 // camera translaiton.
692 double *current_camera_R_t = &all_cameras_R_t[camera->image](0);
704 // We lock the first camera to better deal with scene orientation ambiguity.
727 // No camera intrinsics are being refined,
731 // Set the camera intrinsics that are not to be bundled as