cameras 79 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp std::vector<CameraParams> &cameras) cameras 80 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp { return estimate(features, pairwise_matches, cameras); } cameras 93 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp std::vector<CameraParams> &cameras) = 0; cameras 107 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp std::vector<CameraParams> &cameras); cameras 148 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp std::vector<CameraParams> &cameras); cameras 154 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp virtual void setUpInitialCameraParams(const std::vector<CameraParams> &cameras) = 0; cameras 159 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp virtual void obtainRefinedCameraParams(std::vector<CameraParams> &cameras) const = 0; cameras 210 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp void setUpInitialCameraParams(const std::vector<CameraParams> &cameras); cameras 211 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp void obtainRefinedCameraParams(std::vector<CameraParams> &cameras) const; cameras 230 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp void setUpInitialCameraParams(const std::vector<CameraParams> &cameras); cameras 231 modules/stitching/include/opencv2/stitching/detail/motion_estimators.hpp void obtainRefinedCameraParams(std::vector<CameraParams> &cameras) const; cameras 70 modules/stitching/src/motion_estimators.cpp K_from(0,0) = cameras[edge.from].focal; cameras 71 modules/stitching/src/motion_estimators.cpp K_from(1,1) = cameras[edge.from].focal * cameras[edge.from].aspect; cameras 72 modules/stitching/src/motion_estimators.cpp K_from(0,2) = cameras[edge.from].ppx; cameras 73 modules/stitching/src/motion_estimators.cpp K_from(1,2) = cameras[edge.from].ppy; cameras 76 modules/stitching/src/motion_estimators.cpp K_to(0,0) = cameras[edge.to].focal; cameras 77 modules/stitching/src/motion_estimators.cpp K_to(1,1) = cameras[edge.to].focal * cameras[edge.to].aspect; cameras 78 modules/stitching/src/motion_estimators.cpp K_to(0,2) = cameras[edge.to].ppx; cameras 79 modules/stitching/src/motion_estimators.cpp K_to(1,2) = cameras[edge.to].ppy; cameras 82 modules/stitching/src/motion_estimators.cpp cameras[edge.to].R = cameras[edge.from].R * R; cameras 87 modules/stitching/src/motion_estimators.cpp CameraParams* cameras; cameras 108 modules/stitching/src/motion_estimators.cpp std::vector<CameraParams> &cameras) cameras 143 modules/stitching/src/motion_estimators.cpp cameras.assign(num_images, CameraParams()); cameras 145 modules/stitching/src/motion_estimators.cpp cameras[i].focal = focals[i]; cameras 151 modules/stitching/src/motion_estimators.cpp cameras[i].ppx -= 0.5 * features[i].img_size.width; cameras 152 modules/stitching/src/motion_estimators.cpp cameras[i].ppy -= 0.5 * features[i].img_size.height; cameras 160 modules/stitching/src/motion_estimators.cpp span_tree.walkBreadthFirst(span_tree_centers[0], CalcRotation(num_images, pairwise_matches, cameras)); cameras 165 modules/stitching/src/motion_estimators.cpp cameras[i].ppx += 0.5 * features[i].img_size.width; cameras 166 modules/stitching/src/motion_estimators.cpp cameras[i].ppy += 0.5 * features[i].img_size.height; cameras 178 modules/stitching/src/motion_estimators.cpp std::vector<CameraParams> &cameras) cameras 189 modules/stitching/src/motion_estimators.cpp setUpInitialCameraParams(cameras); cameras 265 modules/stitching/src/motion_estimators.cpp obtainRefinedCameraParams(cameras); cameras 271 modules/stitching/src/motion_estimators.cpp Mat R_inv = cameras[span_tree_centers[0]].R.inv(); cameras 273 modules/stitching/src/motion_estimators.cpp cameras[i].R = R_inv * cameras[i].R; cameras 282 modules/stitching/src/motion_estimators.cpp void BundleAdjusterReproj::setUpInitialCameraParams(const std::vector<CameraParams> &cameras) cameras 288 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7, 0) = cameras[i].focal; cameras 289 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 1, 0) = cameras[i].ppx; cameras 290 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 2, 0) = cameras[i].ppy; cameras 291 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 7 + 3, 0) = cameras[i].aspect; cameras 293 modules/stitching/src/motion_estimators.cpp svd(cameras[i].R, SVD::FULL_UV); cameras 308 modules/stitching/src/motion_estimators.cpp void BundleAdjusterReproj::obtainRefinedCameraParams(std::vector<CameraParams> &cameras) const cameras 312 modules/stitching/src/motion_estimators.cpp cameras[i].focal = cam_params_.at<double>(i * 7, 0); cameras 313 modules/stitching/src/motion_estimators.cpp cameras[i].ppx = cam_params_.at<double>(i * 7 + 1, 0); cameras 314 modules/stitching/src/motion_estimators.cpp cameras[i].ppy = cam_params_.at<double>(i * 7 + 2, 0); cameras 315 modules/stitching/src/motion_estimators.cpp cameras[i].aspect = cam_params_.at<double>(i * 7 + 3, 0); cameras 321 modules/stitching/src/motion_estimators.cpp Rodrigues(rvec, cameras[i].R); cameras 324 modules/stitching/src/motion_estimators.cpp cameras[i].R.convertTo(tmp, CV_32F); cameras 325 modules/stitching/src/motion_estimators.cpp cameras[i].R = tmp; cameras 463 modules/stitching/src/motion_estimators.cpp void BundleAdjusterRay::setUpInitialCameraParams(const std::vector<CameraParams> &cameras) cameras 469 modules/stitching/src/motion_estimators.cpp cam_params_.at<double>(i * 4, 0) = cameras[i].focal; cameras 471 modules/stitching/src/motion_estimators.cpp svd(cameras[i].R, SVD::FULL_UV); cameras 486 modules/stitching/src/motion_estimators.cpp void BundleAdjusterRay::obtainRefinedCameraParams(std::vector<CameraParams> &cameras) const cameras 490 modules/stitching/src/motion_estimators.cpp cameras[i].focal = cam_params_.at<double>(i * 4, 0); cameras 496 modules/stitching/src/motion_estimators.cpp Rodrigues(rvec, cameras[i].R); cameras 499 modules/stitching/src/motion_estimators.cpp cameras[i].R.convertTo(tmp, CV_32F); cameras 500 modules/stitching/src/motion_estimators.cpp cameras[i].R = tmp; cameras 179 modules/videoio/src/cap_dc1394.cpp struct camnode {dc1394_cameracapture cam;int portnum;} cameras[MAX_CAMERAS]; cameras 217 modules/videoio/src/cap_dc1394.cpp cameras[numCameras].cam.node = camera_nodes[i]; cameras 218 modules/videoio/src/cap_dc1394.cpp cameras[numCameras].portnum = p; cameras 243 modules/videoio/src/cap_dc1394.cpp pcap->device_name = videodev[cameras[index].portnum]; cameras 244 modules/videoio/src/cap_dc1394.cpp pcap->handle = handles[cameras[index].portnum]; cameras 245 modules/videoio/src/cap_dc1394.cpp pcap->camera = &cameras[index].cam; cameras 509 samples/cpp/stitching_detailed.cpp vector<CameraParams> cameras; cameras 510 samples/cpp/stitching_detailed.cpp if (!estimator(features, pairwise_matches, cameras)) cameras 516 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) cameras 519 samples/cpp/stitching_detailed.cpp cameras[i].R.convertTo(R, CV_32F); cameras 520 samples/cpp/stitching_detailed.cpp cameras[i].R = R; cameras 521 samples/cpp/stitching_detailed.cpp LOGLN("Initial intrinsics #" << indices[i]+1 << ":\n" << cameras[i].K()); cameras 540 samples/cpp/stitching_detailed.cpp if (!(*adjuster)(features, pairwise_matches, cameras)) cameras 549 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) cameras 551 samples/cpp/stitching_detailed.cpp LOGLN("Camera #" << indices[i]+1 << ":\n" << cameras[i].K()); cameras 552 samples/cpp/stitching_detailed.cpp focals.push_back(cameras[i].focal); cameras 565 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) cameras 566 samples/cpp/stitching_detailed.cpp rmats.push_back(cameras[i].R.clone()); cameras 568 samples/cpp/stitching_detailed.cpp for (size_t i = 0; i < cameras.size(); ++i) cameras 569 samples/cpp/stitching_detailed.cpp cameras[i].R = rmats[i]; cameras 649 samples/cpp/stitching_detailed.cpp cameras[i].K().convertTo(K, CV_32F); cameras 654 samples/cpp/stitching_detailed.cpp corners[i] = warper->warp(images[i], K, cameras[i].R, INTER_LINEAR, BORDER_REFLECT, images_warped[i]); cameras 657 samples/cpp/stitching_detailed.cpp warper->warp(masks[i], K, cameras[i].R, INTER_NEAREST, BORDER_CONSTANT, masks_warped[i]); cameras 746 samples/cpp/stitching_detailed.cpp cameras[i].focal *= compose_work_aspect; cameras 747 samples/cpp/stitching_detailed.cpp cameras[i].ppx *= compose_work_aspect; cameras 748 samples/cpp/stitching_detailed.cpp cameras[i].ppy *= compose_work_aspect; cameras 759 samples/cpp/stitching_detailed.cpp cameras[i].K().convertTo(K, CV_32F); cameras 760 samples/cpp/stitching_detailed.cpp Rect roi = warper->warpRoi(sz, K, cameras[i].R); cameras 773 samples/cpp/stitching_detailed.cpp cameras[img_idx].K().convertTo(K, CV_32F); cameras 776 samples/cpp/stitching_detailed.cpp warper->warp(img, K, cameras[img_idx].R, INTER_LINEAR, BORDER_REFLECT, img_warped); cameras 781 samples/cpp/stitching_detailed.cpp warper->warp(mask, K, cameras[img_idx].R, INTER_NEAREST, BORDER_CONSTANT, mask_warped);