R 73 3rdparty/libtiff/tif_color.c #define RINT(R) ((uint32)((R)>0?((R)+0.5):((R)-0.5))) R 335 3rdparty/libwebp/enc/frame.c int R = 0; R 341 3rdparty/libwebp/enc/frame.c R += GetResidualCost(ctx, &res); R 342 3rdparty/libwebp/enc/frame.c return R; R 349 3rdparty/libwebp/enc/frame.c int R = 0; R 356 3rdparty/libwebp/enc/frame.c R += GetResidualCost(it->top_nz_[8] + it->left_nz_[8], &res); R 364 3rdparty/libwebp/enc/frame.c R += GetResidualCost(ctx, &res); R 368 3rdparty/libwebp/enc/frame.c return R; R 375 3rdparty/libwebp/enc/frame.c int R = 0; R 385 3rdparty/libwebp/enc/frame.c R += GetResidualCost(ctx, &res); R 390 3rdparty/libwebp/enc/frame.c return R; R 730 3rdparty/libwebp/enc/frame.c size += info.R; R 434 3rdparty/libwebp/enc/quant.c rd->R = 0; R 442 3rdparty/libwebp/enc/quant.c dst->R = src->R; R 450 3rdparty/libwebp/enc/quant.c dst->R += src->R; R 479 3rdparty/libwebp/enc/quant.c rd->score = rd->R * lambda + 256 * (rd->D + rd->SD); R 791 3rdparty/libwebp/enc/quant.c rd16.R = VP8GetCostLuma16(it, &rd16); R 792 3rdparty/libwebp/enc/quant.c rd16.R += VP8FixedCostsI16[mode]; R 862 3rdparty/libwebp/enc/quant.c rd_tmp.R = VP8GetCostLuma4(it, tmp_levels); R 863 3rdparty/libwebp/enc/quant.c rd_tmp.R += mode_costs[mode]; R 918 3rdparty/libwebp/enc/quant.c rd_uv.R = VP8GetCostUV(it, &rd_uv); R 919 3rdparty/libwebp/enc/quant.c rd_uv.R += VP8FixedCostsUV[mode]; R 260 3rdparty/libwebp/enc/vp8enci.h score_t D, SD, R, score; // Distortion, spectral distortion, rate, score. R 155 3rdparty/openexr/Imath/ImathFrame.h Matrix44<T> R; R.setAxisAngle( a, r ); R 159 3rdparty/openexr/Imath/ImathFrame.h return Mi * Ti * R * Tj; R 414 3rdparty/openexr/Imath/ImathMatrix.h template <typename R, typename S> R 420 3rdparty/openexr/Imath/ImathMatrix.h template <typename R> R 421 3rdparty/openexr/Imath/ImathMatrix.h struct isSameType<R, R> R 813 3rdparty/openexr/Imath/ImathMatrix.h template <typename R, typename S> R 819 3rdparty/openexr/Imath/ImathMatrix.h template <typename R> R 820 3rdparty/openexr/Imath/ImathMatrix.h struct isSameType<R, R> R 187 apps/traincascade/old_ml_boost.cpp double L, R; R 207 apps/traincascade/old_ml_boost.cpp R = (sum_abs + sum) * 0.5; R 223 apps/traincascade/old_ml_boost.cpp L = R = 0; R 238 apps/traincascade/old_ml_boost.cpp R += w; R 245 apps/traincascade/old_ml_boost.cpp node->maxlr = MAX( L, R ); R 246 apps/traincascade/old_ml_boost.cpp return node->split->quality/(L + R); R 292 apps/traincascade/old_ml_boost.cpp double L = 0, R = rcw[0] + rcw[1]; R 301 apps/traincascade/old_ml_boost.cpp L += w; R -= w; R 309 apps/traincascade/old_ml_boost.cpp double val = (lsum2*R + rsum2*L)/(L*R); R 385 apps/traincascade/old_ml_boost.cpp double L = 0, R; R 411 apps/traincascade/old_ml_boost.cpp R = rcw[0] + rcw[1]; R 439 apps/traincascade/old_ml_boost.cpp R -= weight; R 441 apps/traincascade/old_ml_boost.cpp if( L > FLT_EPSILON && R > FLT_EPSILON ) R 443 apps/traincascade/old_ml_boost.cpp double val = (lsum2*R + rsum2*L)/(L*R); R 505 apps/traincascade/old_ml_boost.cpp double L = 0, R = weights[n]; R 506 apps/traincascade/old_ml_boost.cpp double best_val = init_quality, lsum = 0, rsum = node->value*R; R 514 apps/traincascade/old_ml_boost.cpp R -= w; R 523 apps/traincascade/old_ml_boost.cpp L += w; R -= w; R 528 apps/traincascade/old_ml_boost.cpp double val = (lsum*lsum*R + rsum*rsum*L)/(L*R); R 574 apps/traincascade/old_ml_boost.cpp double L = 0, R = 0, best_val = init_quality, lsum = 0, rsum = 0; R 594 apps/traincascade/old_ml_boost.cpp R += counts[i]; R 616 apps/traincascade/old_ml_boost.cpp rsum -= s; R -= ni; R 618 apps/traincascade/old_ml_boost.cpp if( L > FLT_EPSILON && R > FLT_EPSILON ) R 620 apps/traincascade/old_ml_boost.cpp double val = (lsum*lsum*R + rsum*rsum*L)/(L*R); R 1776 apps/traincascade/old_ml_tree.cpp double L, R; R 1799 apps/traincascade/old_ml_tree.cpp R = (sum_abs + sum) >> 1; R 1818 apps/traincascade/old_ml_tree.cpp R = (sum_abs + sum) * 0.5; R 1846 apps/traincascade/old_ml_tree.cpp R = n1 - split_point + 1; R 1853 apps/traincascade/old_ml_tree.cpp L = R = 0; R 1868 apps/traincascade/old_ml_tree.cpp R += w; R 1875 apps/traincascade/old_ml_tree.cpp node->maxlr = MAX( L, R ); R 1876 apps/traincascade/old_ml_tree.cpp return node->split->quality/(L + R); R 2019 apps/traincascade/old_ml_tree.cpp int L = 0, R = n1; R 2028 apps/traincascade/old_ml_tree.cpp L++; R--; R 2036 apps/traincascade/old_ml_tree.cpp double val = (lsum2*R + rsum2*L)/((double)L*R); R 2047 apps/traincascade/old_ml_tree.cpp double L = 0, R = 0; R 2051 apps/traincascade/old_ml_tree.cpp R += wv; R 2060 apps/traincascade/old_ml_tree.cpp L += p; R -= p; R 2068 apps/traincascade/old_ml_tree.cpp double val = (lsum2*R + rsum2*L)/((double)L*R); R 2220 apps/traincascade/old_ml_tree.cpp double L = 0, R = 0; R 2276 apps/traincascade/old_ml_tree.cpp R += c_weights[j]; R 2319 apps/traincascade/old_ml_tree.cpp R -= weight; R 2334 apps/traincascade/old_ml_tree.cpp R += weight; R 2337 apps/traincascade/old_ml_tree.cpp if( L > FLT_EPSILON && R > FLT_EPSILON ) R 2339 apps/traincascade/old_ml_tree.cpp double val = (lsum2*R + rsum2*L)/((double)L*R); R 2398 apps/traincascade/old_ml_tree.cpp int L = 0, R = n1; R 2408 apps/traincascade/old_ml_tree.cpp L++; R--; R 2414 apps/traincascade/old_ml_tree.cpp double val = (lsum*lsum*R + rsum*rsum*L)/((double)L*R); R 2457 apps/traincascade/old_ml_tree.cpp int i, L = 0, R = 0; R 2477 apps/traincascade/old_ml_tree.cpp R += counts[i]; R 2499 apps/traincascade/old_ml_tree.cpp rsum -= s; R -= ni; R 2501 apps/traincascade/old_ml_tree.cpp if( L && R ) R 2503 apps/traincascade/old_ml_tree.cpp double val = (lsum*lsum*R + rsum*rsum*L)/((double)L*R); R 917 modules/calib3d/include/opencv2/calib3d.hpp Size imageSize, OutputArray R,OutputArray T, OutputArray E, OutputArray F, R 1003 modules/calib3d/include/opencv2/calib3d.hpp Size imageSize, InputArray R, InputArray T, R 1277 modules/calib3d/include/opencv2/calib3d.hpp OutputArray R, OutputArray t, R 1692 modules/calib3d/include/opencv2/calib3d.hpp InputArray K, InputArray D, InputArray R = noArray(), InputArray P = noArray()); R 1708 modules/calib3d/include/opencv2/calib3d.hpp CV_EXPORTS_W void initUndistortRectifyMap(InputArray K, InputArray D, InputArray R, InputArray P, R 1755 modules/calib3d/include/opencv2/calib3d.hpp CV_EXPORTS_W void estimateNewCameraMatrixForUndistortRectify(InputArray K, InputArray D, const Size &image_size, InputArray R, R 1823 modules/calib3d/include/opencv2/calib3d.hpp CV_EXPORTS_W void stereoRectify(InputArray K1, InputArray D1, InputArray K2, InputArray D2, const Size &imageSize, InputArray R, InputArray tvec, R 1861 modules/calib3d/include/opencv2/calib3d.hpp OutputArray R, OutputArray T, int flags = fisheye::CALIB_FIX_INTRINSIC, R 284 modules/calib3d/include/opencv2/calib3d/calib3d_c.h CvSize image_size, CvMat* R, CvMat* T, R 296 modules/calib3d/include/opencv2/calib3d/calib3d_c.h CvSize image_size, const CvMat* R, const CvMat* T, R 463 modules/calib3d/misc/java/test/Calib3dTest.java Mat R = new Mat(3, 3, CvType.CV_32F); R 467 modules/calib3d/misc/java/test/Calib3dTest.java Calib3d.Rodrigues(r, R); R 471 modules/calib3d/misc/java/test/Calib3dTest.java assertMatEqual(truth, R, EPS); R 474 modules/calib3d/misc/java/test/Calib3dTest.java Calib3d.Rodrigues(R, r2); R 336 modules/calib3d/src/calibration.cpp double R[9]; R 337 modules/calib3d/src/calibration.cpp CvMat matR = cvMat( 3, 3, CV_64F, R ); R 342 modules/calib3d/src/calibration.cpp R[k] = c*I[k] + c1*rrt[k] + s*_r_x_[k]; R 368 modules/calib3d/src/calibration.cpp double R[9], U[9], V[9], W[3], rx, ry, rz; R 369 modules/calib3d/src/calibration.cpp CvMat matR = cvMat( 3, 3, CV_64F, R ); R 392 modules/calib3d/src/calibration.cpp rx = R[7] - R[5]; R 393 modules/calib3d/src/calibration.cpp ry = R[2] - R[6]; R 394 modules/calib3d/src/calibration.cpp rz = R[3] - R[1]; R 397 modules/calib3d/src/calibration.cpp c = (R[0] + R[4] + R[8] - 1)*0.5; R 409 modules/calib3d/src/calibration.cpp t = (R[0] + 1)*0.5; R 411 modules/calib3d/src/calibration.cpp t = (R[4] + 1)*0.5; R 412 modules/calib3d/src/calibration.cpp ry = std::sqrt(MAX(t,0.))*(R[1] < 0 ? -1. : 1.); R 413 modules/calib3d/src/calibration.cpp t = (R[8] + 1)*0.5; R 414 modules/calib3d/src/calibration.cpp rz = std::sqrt(MAX(t,0.))*(R[2] < 0 ? -1. : 1.); R 415 modules/calib3d/src/calibration.cpp if( fabs(rx) < fabs(ry) && fabs(rx) < fabs(rz) && (R[5] > 0) != (ry*rz > 0) ) R 545 modules/calib3d/src/calibration.cpp double r[3], R[9], dRdr[27], t[3], a[9], k[12] = {0,0,0,0,0,0,0,0,0,0,0,0}, fx, fy, cx, cy; R 547 modules/calib3d/src/calibration.cpp CvMat matR = cvMat( 3, 3, CV_64F, R ), _dRdr = cvMat( 3, 9, CV_64F, dRdr ); R 752 modules/calib3d/src/calibration.cpp double x = R[0]*X + R[1]*Y + R[2]*Z + t[0]; R 753 modules/calib3d/src/calibration.cpp double y = R[3]*X + R[4]*Y + R[5]*Z + t[1]; R 754 modules/calib3d/src/calibration.cpp double z = R[6]*X + R[7]*Y + R[8]*Z + t[2]; R 932 modules/calib3d/src/calibration.cpp double a[9], ar[9]={1,0,0,0,1,0,0,0,1}, R[9]; R 938 modules/calib3d/src/calibration.cpp CvMat matR = cvMat( 3, 3, CV_64F, R ); R 1803 modules/calib3d/src/calibration.cpp CvMat om[2], R[2], T[2], imgpt_i[2]; R 1810 modules/calib3d/src/calibration.cpp R[k] = cvMat(3, 3, CV_64F, r[k]); R 1816 modules/calib3d/src/calibration.cpp cvRodrigues2( &om[k], &R[k] ); R 1828 modules/calib3d/src/calibration.cpp cvGEMM( &R[1], &R[0], 1, 0, 0, &R[0], CV_GEMM_B_T ); R 1829 modules/calib3d/src/calibration.cpp cvGEMM( &R[0], &T[0], -1, &T[1], 1, &T[1] ); R 1830 modules/calib3d/src/calibration.cpp cvRodrigues2( &R[0], &T[0] ); R 2098 modules/calib3d/src/calibration.cpp const CvMat* R, const CvMat* newCameraMatrix, CvSize imgSize, R 2111 modules/calib3d/src/calibration.cpp cvUndistortPoints(_pts, _pts, cameraMatrix, distCoeffs, R, newCameraMatrix); R 2542 modules/calib3d/src/calibration.cpp CvMat R = cvMat(3, 3, CV_64F, r); R 2543 modules/calib3d/src/calibration.cpp cvMatMul( &R, &T, &T ); R 2544 modules/calib3d/src/calibration.cpp cvMatMul( &R, &E2, &E2 ); R 2751 modules/calib3d/src/calibration.cpp CvMat R = cvMat(3, 3, CV_64F, matR); R 2777 modules/calib3d/src/calibration.cpp cvMatMul(&M, &Qx, &R); R 2795 modules/calib3d/src/calibration.cpp cvMatMul(&R, &Qy, &M); R 2816 modules/calib3d/src/calibration.cpp cvMatMul(&M, &Qz, &R); R 2898 modules/calib3d/src/calibration.cpp cvConvert( &R, matrixR ); R 49 modules/calib3d/src/dls.cpp bool dls::compute_pose(cv::Mat& R, cv::Mat& t) R 85 modules/calib3d/src/dls.cpp C_est__.copyTo(R); R 17 modules/calib3d/src/dls.h bool compute_pose(cv::Mat& R, cv::Mat& t); R 150 modules/calib3d/src/epnp.cpp void epnp::compute_pose(Mat& R, Mat& t) R 196 modules/calib3d/src/epnp.cpp Mat(3, 3, CV_64F, Rs[N]).copyTo(R); R 222 modules/calib3d/src/epnp.cpp void epnp::estimate_R_and_t(double R[3][3], double t[3]) R 265 modules/calib3d/src/epnp.cpp R[i][j] = dot(abt_u + 3 * i, abt_v + 3 * j); R 268 modules/calib3d/src/epnp.cpp R[0][0] * R[1][1] * R[2][2] + R[0][1] * R[1][2] * R[2][0] + R[0][2] * R[1][0] * R[2][1] - R 269 modules/calib3d/src/epnp.cpp R[0][2] * R[1][1] * R[2][0] - R[0][1] * R[1][0] * R[2][2] - R[0][0] * R[1][2] * R[2][1]; R 272 modules/calib3d/src/epnp.cpp R[2][0] = -R[2][0]; R 273 modules/calib3d/src/epnp.cpp R[2][1] = -R[2][1]; R 274 modules/calib3d/src/epnp.cpp R[2][2] = -R[2][2]; R 277 modules/calib3d/src/epnp.cpp t[0] = pc0[0] - dot(R[0], pw0); R 278 modules/calib3d/src/epnp.cpp t[1] = pc0[1] - dot(R[1], pw0); R 279 modules/calib3d/src/epnp.cpp t[2] = pc0[2] - dot(R[2], pw0); R 298 modules/calib3d/src/epnp.cpp double R[3][3], double t[3]) R 305 modules/calib3d/src/epnp.cpp estimate_R_and_t(R, t); R 307 modules/calib3d/src/epnp.cpp return reprojection_error(R, t); R 310 modules/calib3d/src/epnp.cpp double epnp::reprojection_error(const double R[3][3], const double t[3]) R 316 modules/calib3d/src/epnp.cpp double Xc = dot(R[0], pw) + t[0]; R 317 modules/calib3d/src/epnp.cpp double Yc = dot(R[1], pw) + t[1]; R 318 modules/calib3d/src/epnp.cpp double inv_Zc = 1.0 / (dot(R[2], pw) + t[2]); R 18 modules/calib3d/src/epnp.h void compute_pose(cv::Mat& R, cv::Mat& t); R 41 modules/calib3d/src/epnp.h double reprojection_error(const double R[3][3], const double t[3]); R 66 modules/calib3d/src/epnp.h double R[3][3], double t[3]); R 68 modules/calib3d/src/epnp.h void estimate_R_and_t(double R[3][3], double t[3]); R 110 modules/calib3d/src/fisheye.cpp Matx33d R; R 112 modules/calib3d/src/fisheye.cpp Rodrigues(om, R, dRdom); R 312 modules/calib3d/src/fisheye.cpp void cv::fisheye::undistortPoints( InputArray distorted, OutputArray undistorted, InputArray K, InputArray D, InputArray R, InputArray P) R 319 modules/calib3d/src/fisheye.cpp CV_Assert(R.empty() || R.size() == Size(3, 3) || R.total() * R.channels() == 3); R 339 modules/calib3d/src/fisheye.cpp if (!R.empty() && R.total() * R.channels() == 3) R 342 modules/calib3d/src/fisheye.cpp R.getMat().convertTo(rvec, CV_64F); R 345 modules/calib3d/src/fisheye.cpp else if (!R.empty() && R.size() == Size(3, 3)) R 346 modules/calib3d/src/fisheye.cpp R.getMat().convertTo(RR, CV_64F); R 401 modules/calib3d/src/fisheye.cpp void cv::fisheye::initUndistortRectifyMap( InputArray K, InputArray D, InputArray R, InputArray P, R 409 modules/calib3d/src/fisheye.cpp CV_Assert((P.depth() == CV_32F || P.depth() == CV_64F) && (R.depth() == CV_32F || R.depth() == CV_64F)); R 411 modules/calib3d/src/fisheye.cpp CV_Assert(R.empty() || R.size() == Size(3, 3) || R.total() * R.channels() == 3); R 433 modules/calib3d/src/fisheye.cpp if (!R.empty() && R.total() * R.channels() == 3) R 436 modules/calib3d/src/fisheye.cpp R.getMat().convertTo(rvec, CV_64F); R 439 modules/calib3d/src/fisheye.cpp else if (!R.empty() && R.size() == Size(3, 3)) R 440 modules/calib3d/src/fisheye.cpp R.getMat().convertTo(RR, CV_64F); R 511 modules/calib3d/src/fisheye.cpp void cv::fisheye::estimateNewCameraMatrixForUndistortRectify(InputArray K, InputArray D, const Size &image_size, InputArray R, R 541 modules/calib3d/src/fisheye.cpp fisheye::undistortPoints(points, points, K, D, R); R 820 modules/calib3d/src/fisheye.cpp OutputArray R, OutputArray T, int flags, TermCriteria criteria) R 1048 modules/calib3d/src/fisheye.cpp if (R.needed()) _R.convertTo(R, R.empty() ? CV_64FC1 : R.type()); R 1326 modules/calib3d/src/fisheye.cpp Mat R(svd.vt); R 1327 modules/calib3d/src/fisheye.cpp if (norm(R(Rect(2, 0, 1, 2))) < 1e-6) R 1328 modules/calib3d/src/fisheye.cpp R = Mat::eye(3,3, CV_64FC1); R 1329 modules/calib3d/src/fisheye.cpp if (determinant(R) < 0) R 1330 modules/calib3d/src/fisheye.cpp R = -R; R 1331 modules/calib3d/src/fisheye.cpp Mat T = -R * objectPointsMean; R 1332 modules/calib3d/src/fisheye.cpp Mat X_new = R * objectPoints + T * Mat::ones(1, Np, CV_64FC1); R 1348 modules/calib3d/src/fisheye.cpp Rckk = Rckk * R; R 60 modules/calib3d/src/homography_decomp.cpp cv::Matx33d R; //!< rotation matrix R 77 modules/calib3d/src/homography_decomp.cpp bool isRotationValid(const cv::Matx33d& R, const double epsilon=0.01); R 112 modules/calib3d/src/homography_decomp.cpp void findRmatFrom_tstar_n(const cv::Vec3d& tstar, const cv::Vec3d& n, const double v, cv::Matx33d& R); R 131 modules/calib3d/src/homography_decomp.cpp bool HomographyDecomp::isRotationValid(const Matx33d& R, const double epsilon) R 133 modules/calib3d/src/homography_decomp.cpp Matx33d RtR = R.t() * R; R 137 modules/calib3d/src/homography_decomp.cpp return (fabs(determinant(R) - 1.0) < epsilon); R 145 modules/calib3d/src/homography_decomp.cpp Matx11d proj = n.t() * motion.R.t() * t; R 176 modules/calib3d/src/homography_decomp.cpp motion.R = getHnorm() * temp.inv(); R 177 modules/calib3d/src/homography_decomp.cpp motion.t = motion.R * tstar; R 294 modules/calib3d/src/homography_decomp.cpp void HomographyDecompInria::findRmatFrom_tstar_n(const cv::Vec3d& tstar, const cv::Vec3d& n, const double v, cv::Matx33d& R) R 302 modules/calib3d/src/homography_decomp.cpp R = getHnorm() * (I - (2/v) * tstar_m * n_m.t() ); R 319 modules/calib3d/src/homography_decomp.cpp motion.R = Matx33d(getHnorm()); R 409 modules/calib3d/src/homography_decomp.cpp camMotions[0].R = Ra; R 414 modules/calib3d/src/homography_decomp.cpp camMotions[1].R = Ra; R 422 modules/calib3d/src/homography_decomp.cpp camMotions[2].R = Rb; R 427 modules/calib3d/src/homography_decomp.cpp camMotions[3].R = Rb; R 461 modules/calib3d/src/homography_decomp.cpp _rotations.getMatRef(k) = Mat(motions[k].R); R 141 modules/calib3d/src/levmarq.cpp double R = (S - Sd)/(fabs(dS) > DBL_EPSILON ? dS : 1); R 143 modules/calib3d/src/levmarq.cpp if( R > Rhi ) R 149 modules/calib3d/src/levmarq.cpp else if( R < Rlo ) R 34 modules/calib3d/src/p3p.cpp bool p3p::solve(cv::Mat& R, cv::Mat& tvec, const cv::Mat& opoints, const cv::Mat& ipoints) R 54 modules/calib3d/src/p3p.cpp cv::Mat(3, 3, CV_64F, rotation_matrix).copyTo(R); R 58 modules/calib3d/src/p3p.cpp bool p3p::solve(double R[3][3], double t[3], R 88 modules/calib3d/src/p3p.cpp R[i][j] = Rs[ns][i][j]; R 95 modules/calib3d/src/p3p.cpp int p3p::solve(double R[4][3][3], double t[4][3], R 148 modules/calib3d/src/p3p.cpp if (!align(M_orig, X0, Y0, Z0, X1, Y1, Z1, X2, Y2, Z2, R[nb_solutions], t[nb_solutions])) R 265 modules/calib3d/src/p3p.cpp double R[3][3], double T[3]) R 315 modules/calib3d/src/p3p.cpp R[0][0] = q02 + q12 - q22 - q32; R 316 modules/calib3d/src/p3p.cpp R[0][1] = 2. * (q1_2 - q0_3); R 317 modules/calib3d/src/p3p.cpp R[0][2] = 2. * (q1_3 + q0_2); R 319 modules/calib3d/src/p3p.cpp R[1][0] = 2. * (q1_2 + q0_3); R 320 modules/calib3d/src/p3p.cpp R[1][1] = q02 + q22 - q12 - q32; R 321 modules/calib3d/src/p3p.cpp R[1][2] = 2. * (q2_3 - q0_1); R 323 modules/calib3d/src/p3p.cpp R[2][0] = 2. * (q1_3 - q0_2); R 324 modules/calib3d/src/p3p.cpp R[2][1] = 2. * (q2_3 + q0_1); R 325 modules/calib3d/src/p3p.cpp R[2][2] = q02 + q32 - q12 - q22; R 328 modules/calib3d/src/p3p.cpp T[i] = C_end[i] - (R[i][0] * C_start[0] + R[i][1] * C_start[1] + R[i][2] * C_start[2]); R 13 modules/calib3d/src/p3p.h bool solve(cv::Mat& R, cv::Mat& tvec, const cv::Mat& opoints, const cv::Mat& ipoints); R 14 modules/calib3d/src/p3p.h int solve(double R[4][3][3], double t[4][3], R 18 modules/calib3d/src/p3p.h bool solve(double R[3][3], double t[3], R 53 modules/calib3d/src/p3p.h double R[3][3], double T[3]); R 57 modules/calib3d/src/polynom_solver.cpp double R = (9 * b_a * c_a - 27 * d_a - 2 * b_a * b_a2) / 54; R 59 modules/calib3d/src/polynom_solver.cpp double D = Q3 + R * R; R 63 modules/calib3d/src/polynom_solver.cpp if(R == 0) { R 68 modules/calib3d/src/polynom_solver.cpp x0 = pow(2 * R, 1 / 3.0) - b_a_3; R 75 modules/calib3d/src/polynom_solver.cpp double theta = acos(R / sqrt(-Q3)); R 85 modules/calib3d/src/polynom_solver.cpp double AD = pow(fabs(R) + sqrt(D), 1.0 / 3.0) * (R > 0 ? 1 : (R < 0 ? -1 : 0)); R 116 modules/calib3d/src/polynom_solver.cpp double R2 = 0.25 * b2 - c + r0, R; R 120 modules/calib3d/src/polynom_solver.cpp R = sqrt(R2); R 121 modules/calib3d/src/polynom_solver.cpp double inv_R = 1. / R; R 127 modules/calib3d/src/polynom_solver.cpp if (R < 10E-12) { R 144 modules/calib3d/src/polynom_solver.cpp double b_4 = 0.25 * b, R_2 = 0.5 * R; R 96 modules/calib3d/src/solvepnp.cpp Mat R; R 97 modules/calib3d/src/solvepnp.cpp PnP.compute_pose(R, tvec); R 98 modules/calib3d/src/solvepnp.cpp Rodrigues(R, rvec); R 108 modules/calib3d/src/solvepnp.cpp Mat R; R 109 modules/calib3d/src/solvepnp.cpp result = P3Psolver.solve(R, tvec, opoints, undistortedPoints); R 111 modules/calib3d/src/solvepnp.cpp Rodrigues(R, rvec); R 95 modules/calib3d/src/upnp.cpp double upnp::compute_pose(Mat& R, Mat& t) R 140 modules/calib3d/src/upnp.cpp Mat(3, 3, CV_64F, Rs[N]).copyTo(R); R 156 modules/calib3d/src/upnp.cpp void upnp::estimate_R_and_t(double R[3][3], double t[3]) R 200 modules/calib3d/src/upnp.cpp R[i][j] = dot(abt_u + 3 * i, abt_v + 3 * j); R 203 modules/calib3d/src/upnp.cpp R[0][0] * R[1][1] * R[2][2] + R[0][1] * R[1][2] * R[2][0] + R[0][2] * R[1][0] * R[2][1] - R 204 modules/calib3d/src/upnp.cpp R[0][2] * R[1][1] * R[2][0] - R[0][1] * R[1][0] * R[2][2] - R[0][0] * R[1][2] * R[2][1]; R 207 modules/calib3d/src/upnp.cpp R[2][0] = -R[2][0]; R 208 modules/calib3d/src/upnp.cpp R[2][1] = -R[2][1]; R 209 modules/calib3d/src/upnp.cpp R[2][2] = -R[2][2]; R 212 modules/calib3d/src/upnp.cpp t[0] = pc0[0] - dot(R[0], pw0); R 213 modules/calib3d/src/upnp.cpp t[1] = pc0[1] - dot(R[1], pw0); R 214 modules/calib3d/src/upnp.cpp t[2] = pc0[2] - dot(R[2], pw0); R 233 modules/calib3d/src/upnp.cpp double R[3][3], double t[3]) R 240 modules/calib3d/src/upnp.cpp estimate_R_and_t(R, t); R 242 modules/calib3d/src/upnp.cpp return reprojection_error(R, t); R 245 modules/calib3d/src/upnp.cpp double upnp::reprojection_error(const double R[3][3], const double t[3]) R 251 modules/calib3d/src/upnp.cpp double Xc = dot(R[0], pw) + t[0]; R 252 modules/calib3d/src/upnp.cpp double Yc = dot(R[1], pw) + t[1]; R 253 modules/calib3d/src/upnp.cpp double inv_Zc = 1.0 / (dot(R[2], pw) + t[2]); R 61 modules/calib3d/src/upnp.h double compute_pose(cv::Mat& R, cv::Mat& t); R 85 modules/calib3d/src/upnp.h double reprojection_error(const double R[3][3], const double t[3]); R 116 modules/calib3d/src/upnp.h double R[3][3], double t[3]); R 118 modules/calib3d/src/upnp.h void estimate_R_and_t(double R[3][3], double t[3]); R 61 modules/calib3d/test/test_affine3.cpp cv::Matx33d R = cv::Matx33d::eye(); R 64 modules/calib3d/test/test_affine3.cpp R.val[0] = R.val[4] = std::cos(CV_PI*angle/180.0); R 65 modules/calib3d/test/test_affine3.cpp R.val[3] = std::sin(CV_PI*angle/180.0); R 66 modules/calib3d/test/test_affine3.cpp R.val[1] = -R.val[3]; R 70 modules/calib3d/test/test_affine3.cpp cv::Affine3d affine2(R, cv::Vec3d(1, 1, 0.4)); R 89 modules/calib3d/test/test_affine3.cpp cv::Affine3<T>::Mat3 u, vt, R; R 93 modules/calib3d/test/test_affine3.cpp rng.fill(R, cv::RNG::UNIFORM, -10, 10, true); R 94 modules/calib3d/test/test_affine3.cpp cv::SVD::compute(R, w, u, vt, cv::SVD::FULL_UV + cv::SVD::MODIFY_A); R 95 modules/calib3d/test/test_affine3.cpp R = u * vt; R 98 modules/calib3d/test/test_affine3.cpp cv::Affine3<T>::Vec3 va = cv::Affine3<T>(R).rvec(); R 103 modules/calib3d/test/test_affine3.cpp cv::Rodrigues(R, vo); R 1283 modules/calib3d/test/test_cameracalibration.cpp const Mat& M, const Mat& D, const Mat& R, R 1292 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, Mat& R, Mat& T, R 1296 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, const Mat& R, const Mat& T, R 1329 modules/calib3d/test/test_cameracalibration.cpp bool CV_StereoCalibrationTest::checkPandROI( int test_case_idx, const Mat& M, const Mat& D, const Mat& R, R 1342 modules/calib3d/test/test_cameracalibration.cpp undistortPoints(Mat(pts), upts, M, D, R, P ); R 1355 modules/calib3d/test/test_cameracalibration.cpp initUndistortRectifyMap(M, D, R, P, imgsize, CV_16SC2, map1, map2); R 1456 modules/calib3d/test/test_cameracalibration.cpp Mat M1 = Mat::eye(3,3,CV_64F), M2 = Mat::eye(3,3,CV_64F), D1(5,1,CV_64F), D2(5,1,CV_64F), R, T, E, F; R 1461 modules/calib3d/test/test_cameracalibration.cpp double err = calibrateStereoCamera(objpt, imgpt1, imgpt2, M1, D1, M2, D2, imgsize, R, T, E, F, R 1480 modules/calib3d/test/test_cameracalibration.cpp rectify(M1, D1, M2, D2, imgsize, R, T, R1, R2, P1, P2, Q, 1, imgsize, &roi1, &roi2, 0); R 1672 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, Mat& R, Mat& T, R 1676 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, const Mat& R, const Mat& T, R 1696 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, Mat& R, Mat& T, R 1703 modules/calib3d/test/test_cameracalibration.cpp R.create(3, 3, CV_64F); R 1733 modules/calib3d/test/test_cameracalibration.cpp CvMat matR = R, matT = T, matE = E, matF = F; R 1742 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, const Mat& R, const Mat& T, R 1755 modules/calib3d/test/test_cameracalibration.cpp CvMat matR = R, matT = T, _R1 = R1, _R2 = R2, _P1 = P1, _P2 = P2, matQ = Q; R 1805 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, Mat& R, Mat& T, R 1809 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, const Mat& R, const Mat& T, R 1829 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, Mat& R, Mat& T, R 1834 modules/calib3d/test/test_cameracalibration.cpp imageSize, R, T, E, F, flags, criteria ); R 1839 modules/calib3d/test/test_cameracalibration.cpp Size imageSize, const Mat& R, const Mat& T, R 1845 modules/calib3d/test/test_cameracalibration.cpp imageSize, R, T, R1, R2, P1, P2, Q, flags, alpha, newImageSize,validPixROI1, validPixROI2 ); R 101 modules/calib3d/test/test_decompose_projection.cpp cv::Matx33d K, R; R 103 modules/calib3d/test/test_decompose_projection.cpp decomposeProjectionMatrix(P, K, R, homogCameraCenter); R 110 modules/calib3d/test/test_decompose_projection.cpp cv::Vec3d t = -R*cameraCenter; R 120 modules/calib3d/test/test_decompose_projection.cpp if ( norm(origR, R, cv::NORM_INF) > thresh ) R 53 modules/calib3d/test/test_fisheye.cpp const static cv::Matx33d R; R 305 modules/calib3d/test/test_fisheye.cpp cv::Mat R(svd.vt); R 307 modules/calib3d/test/test_fisheye.cpp if (cv::norm(R(cv::Rect(2, 0, 1, 2))) < 1e-6) R 308 modules/calib3d/test/test_fisheye.cpp R = cv::Mat::eye(3,3, CV_64FC1); R 309 modules/calib3d/test/test_fisheye.cpp if (cv::determinant(R) < 0) R 310 modules/calib3d/test/test_fisheye.cpp R = -R; R 312 modules/calib3d/test/test_fisheye.cpp cv::Mat T = -R * objectPointsMean; R 313 modules/calib3d/test/test_fisheye.cpp cv::Mat X_new = R * _objectPoints + T * cv::Mat::ones(1, Np, CV_64FC1); R 402 modules/calib3d/test/test_fisheye.cpp cv::Matx33d R = this->R; R 406 modules/calib3d/test/test_fisheye.cpp cv::fisheye::stereoRectify(K1, D1, K2, D2, calibration_size, R, T, R1, R2, P1, P2, Q, R 470 modules/calib3d/test/test_fisheye.cpp cv::Matx33d K1, K2, R; R 481 modules/calib3d/test/test_fisheye.cpp K1, D1, K2, D2, imageSize, R, T, flag, R 499 modules/calib3d/test/test_fisheye.cpp EXPECT_MAT_NEAR(R, R_correct, 1e-10); R 538 modules/calib3d/test/test_fisheye.cpp cv::Matx33d R; R 559 modules/calib3d/test/test_fisheye.cpp K1, D1, K2, D2, imageSize, R, T, flag, R 568 modules/calib3d/test/test_fisheye.cpp EXPECT_MAT_NEAR(R, R_correct, 1e-10); R 583 modules/calib3d/test/test_fisheye.cpp const cv::Matx33d fisheyeTest::R ( 9.9756700084424932e-01, 6.9698277640183867e-02, 1.4929569991321144e-03, R 105 modules/calib3d/test/test_fundam.cpp double R[9]; R 108 modules/calib3d/test/test_fundam.cpp CvMat matR = cvMat(3, 3, CV_64F, R); R 210 modules/calib3d/test/test_fundam.cpp double R[9], A[9], I[9], r[3], W[3], U[9], V[9]; R 212 modules/calib3d/test/test_fundam.cpp CvMat matR = cvMat( 3, 3, CV_64F, R ); R 243 modules/calib3d/test/test_fundam.cpp double om1[] = { R[7] - R[5], R[2] - R[6], R[3] - R[1] }; R 304 modules/calib3d/test/test_fundam.cpp r[0] = theta*sqrt((R[0] + 1)*0.5); R 305 modules/calib3d/test/test_fundam.cpp r[1] = theta*sqrt((R[4] + 1)*0.5)*(R[1] >= 0 ? 1 : -1); R 306 modules/calib3d/test/test_fundam.cpp r[2] = theta*sqrt((R[8] + 1)*0.5)*(R[2] >= 0 ? 1 : -1); R 993 modules/calib3d/test/test_fundam.cpp Mat invA1, invA2, R=Rt.colRange(0, 3), T; R 1006 modules/calib3d/test/test_fundam.cpp cv::gemm( R, invA1, 1, Mat(), 0, invA2 ); R 1295 modules/calib3d/test/test_fundam.cpp Mat R, t, mask2; R 1296 modules/calib3d/test/test_fundam.cpp recoverPose( E, _input0, _input1, R, t, focal, pp, mask2 ); R 1297 modules/calib3d/test/test_fundam.cpp R.copyTo(test_mat[TEMP][2]); R 1330 modules/calib3d/test/test_fundam.cpp Mat invA, R=Rt0.colRange(0, 3), T1, T2; R 1342 modules/calib3d/test/test_fundam.cpp cv::gemm( R, invA, 1, Mat(), 0, T2 ); R 332 modules/calib3d/test/test_solvepnp_ransac.cpp Mat R,t, RF, tF; R 336 modules/calib3d/test/test_solvepnp_ransac.cpp solvePnPRansac(points3d, points2d, intrinsics, cv::Mat(), R, t, true, 100, 8.f, 0.999, inliers, cv::SOLVEPNP_P3P); R 338 modules/calib3d/test/test_solvepnp_ransac.cpp ASSERT_LE(norm(R, Mat_<double>(RF), NORM_INF), 1e-3); R 189 modules/calib3d/test/test_undistort.cpp cv::Mat R; R 373 modules/calib3d/test/test_undistort.cpp R = test_mat[INPUT][3]; R 595 modules/calib3d/test/test_undistort.cpp cv::Mat R; R 780 modules/calib3d/test/test_undistort.cpp R = test_mat[INPUT][3]; R 71 modules/calib3d/test/test_undistort_badarg.cpp cv::Mat R; R 89 modules/calib3d/test/test_undistort_badarg.cpp cv::undistortPoints(src_points,dst_points,camera_mat,distortion_coeffs,R,P); R 255 modules/calib3d/test/test_undistort_badarg.cpp R = cv::cvarrToMat(&_R_orig); R 308 modules/calib3d/test/test_undistort_badarg.cpp cv::Mat R; R 327 modules/calib3d/test/test_undistort_badarg.cpp cv::initUndistortRectifyMap(camera_mat,distortion_coeffs,R,new_camera_mat,img_size,mat_type,mapx,mapy); R 374 modules/calib3d/test/test_undistort_badarg.cpp R = cv::cvarrToMat(&_R_orig); R 390 modules/calib3d/test/test_undistort_badarg.cpp R = cv::cvarrToMat(temp); R 392 modules/calib3d/test/test_undistort_badarg.cpp R = cv::cvarrToMat(&_R_orig); R 75 modules/core/include/opencv2/core/affine.hpp Affine3(const Mat3& R, const Vec3& t = Vec3::all(0)); R 90 modules/core/include/opencv2/core/affine.hpp void rotation(const Mat3& R); R 111 modules/core/include/opencv2/core/affine.hpp Affine3 rotate(const Mat3& R) const; R 185 modules/core/include/opencv2/core/affine.hpp cv::Affine3<T>::Affine3(const Mat3& R, const Vec3& t) R 187 modules/core/include/opencv2/core/affine.hpp rotation(R); R 236 modules/core/include/opencv2/core/affine.hpp void cv::Affine3<T>::rotation(const Mat3& R) R 238 modules/core/include/opencv2/core/affine.hpp linear(R); R 262 modules/core/include/opencv2/core/affine.hpp Mat3 R; R 267 modules/core/include/opencv2/core/affine.hpp R.val[k] = static_cast<float_type>(c*I[k] + c1*rrt[k] + s*_r_x_[k]); R 269 modules/core/include/opencv2/core/affine.hpp rotation(R); R 281 modules/core/include/opencv2/core/affine.hpp Mat3 R; R 282 modules/core/include/opencv2/core/affine.hpp data.copyTo(R); R 283 modules/core/include/opencv2/core/affine.hpp rotation(R); R 318 modules/core/include/opencv2/core/affine.hpp typename cv::Affine3<T>::Mat3 R; R 319 modules/core/include/opencv2/core/affine.hpp R.val[0] = matrix.val[0]; R.val[1] = matrix.val[1]; R.val[2] = matrix.val[ 2]; R 320 modules/core/include/opencv2/core/affine.hpp R.val[3] = matrix.val[4]; R.val[4] = matrix.val[5]; R.val[5] = matrix.val[ 6]; R 321 modules/core/include/opencv2/core/affine.hpp R.val[6] = matrix.val[8]; R.val[7] = matrix.val[9]; R.val[8] = matrix.val[10]; R 322 modules/core/include/opencv2/core/affine.hpp return R; R 335 modules/core/include/opencv2/core/affine.hpp cv::Matx33d u, vt, R = rotation(); R 336 modules/core/include/opencv2/core/affine.hpp cv::SVD::compute(R, w, u, vt, cv::SVD::FULL_UV + cv::SVD::MODIFY_A); R 337 modules/core/include/opencv2/core/affine.hpp R = u * vt; R 339 modules/core/include/opencv2/core/affine.hpp double rx = R.val[7] - R.val[5]; R 340 modules/core/include/opencv2/core/affine.hpp double ry = R.val[2] - R.val[6]; R 341 modules/core/include/opencv2/core/affine.hpp double rz = R.val[3] - R.val[1]; R 344 modules/core/include/opencv2/core/affine.hpp double c = (R.val[0] + R.val[4] + R.val[8] - 1) * 0.5; R 355 modules/core/include/opencv2/core/affine.hpp t = (R.val[0] + 1) * 0.5; R 357 modules/core/include/opencv2/core/affine.hpp t = (R.val[4] + 1) * 0.5; R 358 modules/core/include/opencv2/core/affine.hpp ry = std::sqrt(std::max(t, 0.0)) * (R.val[1] < 0 ? -1.0 : 1.0); R 359 modules/core/include/opencv2/core/affine.hpp t = (R.val[8] + 1) * 0.5; R 360 modules/core/include/opencv2/core/affine.hpp rz = std::sqrt(std::max(t, 0.0)) * (R.val[2] < 0 ? -1.0 : 1.0); R 362 modules/core/include/opencv2/core/affine.hpp if( fabs(rx) < fabs(ry) && fabs(rx) < fabs(rz) && (R.val[5] > 0) != (ry*rz > 0) ) R 387 modules/core/include/opencv2/core/affine.hpp cv::Affine3<T> cv::Affine3<T>::rotate(const Mat3& R) const R 401 modules/core/include/opencv2/core/affine.hpp value += R(j, k) * Lc(k, i); R 405 modules/core/include/opencv2/core/affine.hpp result(j, 3) = R.row(j).dot(tc.t()); R 1546 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp int R = blueIdx == 0 ? src.z : src.x; R 1552 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp R = c_sRGBGammaTab_b[R]; R 1558 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp R <<= 3; R 1561 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp int fX = LabCbrt_b(CV_DESCALE(B * 778 + G * 1541 + R * 1777, lab_shift)); R 1562 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp int fY = LabCbrt_b(CV_DESCALE(B * 296 + G * 2929 + R * 871, lab_shift)); R 1563 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp int fZ = LabCbrt_b(CV_DESCALE(B * 3575 + G * 448 + R * 73, lab_shift)); R 1592 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float R = blueIdx == 0 ? src.z : src.x; R 1598 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBGammaTab, GAMMA_TAB_SIZE); R 1601 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float X = B * 0.189828f + G * 0.376219f + R * 0.433953f; R 1602 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float Y = B * 0.072169f + G * 0.715160f + R * 0.212671f; R 1603 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float Z = B * 0.872766f + G * 0.109477f + R * 0.017758f; R 1699 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float R = 3.079933f * X - 1.537150f * Y - 0.542782f * Z; R 1705 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBInvGammaTab, GAMMA_TAB_SIZE); R 1708 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = blueIdx == 0 ? B : R; R 1710 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = blueIdx == 0 ? R : B; R 1789 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float R = blueIdx == 0 ? src.z : src.x; R 1795 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBGammaTab, GAMMA_TAB_SIZE); R 1798 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float X = R * 0.412453f + G * 0.357580f + B * 0.180423f; R 1799 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float Y = R * 0.212671f + G * 0.715160f + B * 0.072169f; R 1800 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float Z = R * 0.019334f + G * 0.119193f + B * 0.950227f; R 1899 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float R = 3.240479f * X - 1.537150f * Y - 0.498535f * Z; R 1905 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBInvGammaTab, GAMMA_TAB_SIZE); R 1908 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = blueIdx == 0 ? B : R; R 1910 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = blueIdx == 0 ? R : B; R 1991 modules/core/src/mathfuncs.cpp double R = (2 * a1 * a1 * a1 - 9 * a1 * a2 + 27 * a3) * (1./54); R 1993 modules/core/src/mathfuncs.cpp double d = Qcubed - R * R; R 1997 modules/core/src/mathfuncs.cpp double theta = acos(R / std::sqrt(Qcubed)); R 2011 modules/core/src/mathfuncs.cpp e = std::pow(d + fabs(R), 0.333333333333); R 2012 modules/core/src/mathfuncs.cpp if( R > 0 ) R 1079 modules/core/test/test_operations.cpp Mat U,Vt,R,T,W; R 398 modules/cudaoptflow/src/farneback.cpp GpuMat R[2] = R 406 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::polynomialExpansionGpu(pyramid0_[k], polyN_, R[0], StreamAccessor::getStream(streams[0])); R 407 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::polynomialExpansionGpu(pyramid1_[k], polyN_, R[1], StreamAccessor::getStream(streams[1])); R 430 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::polynomialExpansionGpu(pyrLevel[i], polyN_, R[i], StreamAccessor::getStream(streams[i])); R 435 modules/cudaoptflow/src/farneback.cpp device::optflow_farneback::updateMatricesGpu(curFlowX, curFlowY, R[0], R[1], M, StreamAccessor::getStream(streams[0])); R 445 modules/cudaoptflow/src/farneback.cpp updateFlow_gaussianBlur(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize_, i < numIters_-1, streams); R 447 modules/cudaoptflow/src/farneback.cpp updateFlow_boxFilter(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize_, i < numIters_-1, streams); R 968 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp int R = blueIdx == 0 ? src.z : src.x; R 974 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R = c_sRGBGammaTab_b[R]; R 980 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R <<= 3; R 983 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp int fX = LabCbrt_b(CV_CUDEV_DESCALE(B * 778 + G * 1541 + R * 1777, lab_shift)); R 984 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp int fY = LabCbrt_b(CV_CUDEV_DESCALE(B * 296 + G * 2929 + R * 871, lab_shift)); R 985 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp int fZ = LabCbrt_b(CV_CUDEV_DESCALE(B * 3575 + G * 448 + R * 73, lab_shift)); R 1011 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float R = blueIdx == 0 ? src.z : src.x; R 1017 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBGammaTab, GAMMA_TAB_SIZE); R 1020 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float X = B * 0.189828f + G * 0.376219f + R * 0.433953f; R 1021 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float Y = B * 0.072169f + G * 0.715160f + R * 0.212671f; R 1022 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float Z = B * 0.872766f + G * 0.109477f + R * 0.017758f; R 1084 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float R = 3.079933f * X - 1.537150f * Y - 0.542782f * Z; R 1090 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBInvGammaTab, GAMMA_TAB_SIZE); R 1095 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = blueIdx == 0 ? B : R; R 1097 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = blueIdx == 0 ? R : B; R 1146 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float R = blueIdx == 0 ? src.z : src.x; R 1152 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBGammaTab, GAMMA_TAB_SIZE); R 1155 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float X = R * 0.412453f + G * 0.357580f + B * 0.180423f; R 1156 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float Y = R * 0.212671f + G * 0.715160f + B * 0.072169f; R 1157 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float Z = R * 0.019334f + G * 0.119193f + B * 0.950227f; R 1230 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp float R = 3.240479f * X - 1.537150f * Y - 0.498535f * Z; R 1232 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R = ::fminf(::fmaxf(R, 0.f), 1.f); R 1240 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp R = splineInterpolate(R * GAMMA_TAB_SIZE, c_sRGBInvGammaTab, GAMMA_TAB_SIZE); R 1245 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = blueIdx == 0 ? B : R; R 1247 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = blueIdx == 0 ? R : B; R 70 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <int BLOCK_SIZE, typename R> R 71 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static volatile R* smem(R* ptr) R 76 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> R 77 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static R& res(R& val) R 91 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <int BLOCK_SIZE, typename R> R 92 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static tuple<volatile R*, volatile R*> smem(R* ptr) R 97 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> R 98 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&, typename VecTraits<R>::elem_type&> res(R& val) R 112 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <int BLOCK_SIZE, typename R> R 113 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static tuple<volatile R*, volatile R*, volatile R*> smem(R* ptr) R 118 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> R 119 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&, R 120 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp typename VecTraits<R>::elem_type&, R 121 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp typename VecTraits<R>::elem_type&> res(R& val) R 135 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <int BLOCK_SIZE, typename R> R 136 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static tuple<volatile R*, volatile R*, volatile R*, volatile R*> smem(R* ptr) R 141 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> R 142 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&, R 143 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp typename VecTraits<R>::elem_type&, R 144 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp typename VecTraits<R>::elem_type&, R 145 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp typename VecTraits<R>::elem_type&> res(R& val) R 159 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R, int cn> struct AtomicUnroll; R 161 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> struct AtomicUnroll<R, 1> R 163 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void add(R* ptr, R val) R 168 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void min(R* ptr, R val) R 173 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void max(R* ptr, R val) R 179 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> struct AtomicUnroll<R, 2> R 183 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void add(R* ptr, val_type val) R 189 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void min(R* ptr, val_type val) R 195 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void max(R* ptr, val_type val) R 202 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> struct AtomicUnroll<R, 3> R 206 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void add(R* ptr, val_type val) R 213 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void min(R* ptr, val_type val) R 220 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void max(R* ptr, val_type val) R 228 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp template <typename R> struct AtomicUnroll<R, 4> R 232 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void add(R* ptr, val_type val) R 240 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void min(R* ptr, val_type val) R 248 modules/cudev/include/opencv2/cudev/grid/detail/reduce.hpp __device__ __forceinline__ static void max(R* ptr, val_type val) R 2626 modules/imgproc/include/opencv2/imgproc.hpp InputArray R, InputArray newCameraMatrix, R 2699 modules/imgproc/include/opencv2/imgproc.hpp InputArray R = noArray(), InputArray P = noArray()); R 296 modules/imgproc/include/opencv2/imgproc/imgproc_c.h const CvMat *R, const CvMat* new_camera_matrix, R 306 modules/imgproc/include/opencv2/imgproc/imgproc_c.h const CvMat* R CV_DEFAULT(0), R 1149 modules/imgproc/misc/java/test/ImgprocTest.java Mat R = new Mat(3, 3, CvType.CV_32F, new Scalar(2)); R 1157 modules/imgproc/misc/java/test/ImgprocTest.java Imgproc.initUndistortRectifyMap(cameraMatrix, distCoeffs, R, newCameraMatrix, size, CvType.CV_32F, map1, map2); R 3663 modules/imgproc/src/color.cpp _Tp R = saturate_cast<_Tp>(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8); R 3664 modules/imgproc/src/color.cpp dst[0] = B; dst[1] = G; dst[2] = R; R 3781 modules/imgproc/src/color.cpp float R = src[i]*C6 + src[i+1]*C7 + src[i+2]*C8; R 3782 modules/imgproc/src/color.cpp dst[0] = B; dst[1] = G; dst[2] = R; R 3833 modules/imgproc/src/color.cpp int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift); R 3835 modules/imgproc/src/color.cpp dst[2] = saturate_cast<_Tp>(R); R 3949 modules/imgproc/src/color.cpp int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift); R 3951 modules/imgproc/src/color.cpp dst[2] = saturate_cast<uchar>(R); R 4100 modules/imgproc/src/color.cpp int R = CV_DESCALE(src[i]*C6 + src[i+1]*C7 + src[i+2]*C8, xyz_shift); R 4102 modules/imgproc/src/color.cpp dst[2] = saturate_cast<ushort>(R); R 5117 modules/imgproc/src/color.cpp int R = tab[src[0]], G = tab[src[1]], B = tab[src[2]]; R 5118 modules/imgproc/src/color.cpp int fX = LabCbrtTab_b[CV_DESCALE(R*C0 + G*C1 + B*C2, lab_shift)]; R 5119 modules/imgproc/src/color.cpp int fY = LabCbrtTab_b[CV_DESCALE(R*C3 + G*C4 + B*C5, lab_shift)]; R 5120 modules/imgproc/src/color.cpp int fZ = LabCbrtTab_b[CV_DESCALE(R*C6 + G*C7 + B*C8, lab_shift)]; R 5185 modules/imgproc/src/color.cpp float R = clip(src[0]); R 5191 modules/imgproc/src/color.cpp R = splineInterpolate(R * gscale, gammaTab, GAMMA_TAB_SIZE); R 5195 modules/imgproc/src/color.cpp float X = R*C0 + G*C1 + B*C2; R 5196 modules/imgproc/src/color.cpp float Y = R*C3 + G*C4 + B*C5; R 5197 modules/imgproc/src/color.cpp float Z = R*C6 + G*C7 + B*C8; R 5564 modules/imgproc/src/color.cpp float R = src[0], G = src[1], B = src[2]; R 5567 modules/imgproc/src/color.cpp R = splineInterpolate(R*gscale, gammaTab, GAMMA_TAB_SIZE); R 5572 modules/imgproc/src/color.cpp float X = R*C0 + G*C1 + B*C2; R 5573 modules/imgproc/src/color.cpp float Y = R*C3 + G*C4 + B*C5; R 5574 modules/imgproc/src/color.cpp float Z = R*C6 + G*C7 + B*C8; R 5644 modules/imgproc/src/color.cpp float R = X*C0 + Y*C1 + Z*C2; R 5648 modules/imgproc/src/color.cpp R = std::min(std::max(R, 0.f), 1.f); R 5654 modules/imgproc/src/color.cpp R = splineInterpolate(R*gscale, gammaTab, GAMMA_TAB_SIZE); R 5659 modules/imgproc/src/color.cpp dst[0] = R; dst[1] = G; dst[2] = B; R 1050 modules/imgproc/src/demosaicing.cpp int R, G, B; R 1120 modules/imgproc/src/demosaicing.cpp R = srow[0]; R 1121 modules/imgproc/src/demosaicing.cpp G = R + cvRound((Gs - Rs)*scale[ng]); R 1122 modules/imgproc/src/demosaicing.cpp B = R + cvRound((Bs - Rs)*scale[ng]); R 1193 modules/imgproc/src/demosaicing.cpp R = G + cvRound((Rs - Gs)*scale[ng]); R 1198 modules/imgproc/src/demosaicing.cpp dstrow[blueIdx^2] = cv::saturate_cast<uchar>(R); R 1428 modules/imgproc/src/demosaicing.cpp uchar R[8], G[8], B[8]; R 1430 modules/imgproc/src/demosaicing.cpp _mm_storel_epi64(blueIdx ? (__m128i*)B : (__m128i*)R, _mm_packus_epi16(x1, z)); R 1432 modules/imgproc/src/demosaicing.cpp _mm_storel_epi64(blueIdx ? (__m128i*)R : (__m128i*)B, _mm_packus_epi16(t1, z)); R 1436 modules/imgproc/src/demosaicing.cpp dstrow[0] = B[j]; dstrow[1] = G[j]; dstrow[2] = R[j]; R 68 modules/imgproc/src/floodfill.cpp #define ICV_PUSH( Y, L, R, PREV_L, PREV_R, DIR ) \ R 72 modules/imgproc/src/floodfill.cpp tail->r = (ushort)(R); \ R 85 modules/imgproc/src/floodfill.cpp #define ICV_POP( Y, L, R, PREV_L, PREV_R, DIR ) \ R 90 modules/imgproc/src/floodfill.cpp R = tail->r; \ R 136 modules/imgproc/src/floodfill.cpp int i, L, R; R 142 modules/imgproc/src/floodfill.cpp L = R = XMin = XMax = seed.x; R 147 modules/imgproc/src/floodfill.cpp while( ++R < roi.width && img[R] == val0 ) R 148 modules/imgproc/src/floodfill.cpp img[R] = newVal; R 153 modules/imgproc/src/floodfill.cpp XMax = --R; R 156 modules/imgproc/src/floodfill.cpp ICV_PUSH( seed.y, L, R, R + 1, R, UP ); R 161 modules/imgproc/src/floodfill.cpp ICV_POP( YC, L, R, PL, PR, dir ); R 165 modules/imgproc/src/floodfill.cpp {-dir, L - _8_connectivity, R + _8_connectivity}, R 167 modules/imgproc/src/floodfill.cpp {dir, PR + 1, R + _8_connectivity} R 172 modules/imgproc/src/floodfill.cpp area += R - L + 1; R 174 modules/imgproc/src/floodfill.cpp if( XMax < R ) XMax = R; R 203 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); R 291 modules/imgproc/src/floodfill.cpp int i, L, R; R 299 modules/imgproc/src/floodfill.cpp L = R = seed.x; R 308 modules/imgproc/src/floodfill.cpp while( !mask[R + 1] && diff( img + (R+1), &val0 )) R 309 modules/imgproc/src/floodfill.cpp mask[++R] = newMaskVal; R 316 modules/imgproc/src/floodfill.cpp while( !mask[R + 1] && diff( img + (R+1), img + R )) R 317 modules/imgproc/src/floodfill.cpp mask[++R] = newMaskVal; R 323 modules/imgproc/src/floodfill.cpp XMax = R; R 326 modules/imgproc/src/floodfill.cpp ICV_PUSH( seed.y, L, R, R + 1, R, UP ); R 331 modules/imgproc/src/floodfill.cpp ICV_POP( YC, L, R, PL, PR, dir ); R 335 modules/imgproc/src/floodfill.cpp {-dir, L - _8_connectivity, R + _8_connectivity}, R 337 modules/imgproc/src/floodfill.cpp {dir, PR + 1, R + _8_connectivity} R 340 modules/imgproc/src/floodfill.cpp unsigned length = (unsigned)(R-L); R 346 modules/imgproc/src/floodfill.cpp if( XMax < R ) XMax = R; R 374 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); R 389 modules/imgproc/src/floodfill.cpp (diff( img + i, img1 + i) && i <= R))) R 392 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); R 426 modules/imgproc/src/floodfill.cpp ICV_PUSH( YC + dir, j+1, i-1, L, R, -dir ); R 433 modules/imgproc/src/floodfill.cpp for( i = L; i <= R; i++ ) R 957 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; R 960 modules/imgproc/src/histogram.cpp while( v >= R[idx+1] && ++idx < sz ) R 1358 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; R 1361 modules/imgproc/src/histogram.cpp while( v >= R[j+1] && ++j < sz ) R 1722 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; R 1725 modules/imgproc/src/histogram.cpp while( v >= R[idx+1] && ++idx < sz ) R 1965 modules/imgproc/src/histogram.cpp const float* R = ranges[i]; R 1968 modules/imgproc/src/histogram.cpp while( v >= R[j+1] && ++j < sz ) R 2716 modules/imgproc/src/imgwarp.cpp func = (ippiResizeFunc)ippiResizeLinear_##TYPE##_##CN##R; \ R 2724 modules/imgproc/src/imgwarp.cpp func = (ippiResizeFunc)ippiResizeLinear_##TYPE##_##CN##R; \ R 2733 modules/imgproc/src/imgwarp.cpp func = (ippiResizeFunc)ippiResizeCubic_##TYPE##_##CN##R; \ R 82 modules/imgproc/src/undistort.cpp Mat_<double> R = Mat_<double>::eye(3, 3); R 91 modules/imgproc/src/undistort.cpp R = Mat_<double>(matR); R 101 modules/imgproc/src/undistort.cpp CV_Assert( A.size() == Size(3,3) && A.size() == R.size() ); R 103 modules/imgproc/src/undistort.cpp Mat_<double> iR = (Ar.colRange(0,3)*R).inv(DECOMP_LU); R 247 modules/imgproc/src/undistort.cpp cv::Mat A = cv::cvarrToMat(Aarr), distCoeffs, R, Ar; R 256 modules/imgproc/src/undistort.cpp R = cv::cvarrToMat(Rarr); R 260 modules/imgproc/src/undistort.cpp cv::initUndistortRectifyMap( A, distCoeffs, R, Ar, mapx.size(), mapx.type(), mapx, mapy ); R 398 modules/imgproc/src/undistort.cpp Mat distCoeffs = _distCoeffs.getMat(), R = _Rmat.getMat(), P = _Pmat.getMat(); R 408 modules/imgproc/src/undistort.cpp if( !R.empty() ) R 409 modules/imgproc/src/undistort.cpp pR = &(matR = R); R 1029 modules/imgproc/test/test_color.cpp float R = src_row[x + 2]; R 1033 modules/imgproc/test/test_color.cpp float X = (R * M[0] + G * M[1] + B * M[2]) / Xn; R 1034 modules/imgproc/test/test_color.cpp float Y = R * M[3] + G * M[4] + B * M[5]; R 1035 modules/imgproc/test/test_color.cpp float Z = (R * M[6] + G * M[7] + B * M[8]) / Zn; R 1106 modules/imgproc/test/test_color.cpp float R = M[0] * X + M[1] * Y + M[2] * Z; R 1112 modules/imgproc/test/test_color.cpp dst_row[x + 2] = R; R 2062 modules/imgproc/test/test_color.cpp const T* R = reference.ptr<T>(y); R 2065 modules/imgproc/test/test_color.cpp if (std::abs(A[x] - R[x]) > 1) R 2068 modules/imgproc/test/test_color.cpp ts->printf(SUM, "\nReference value: %d\n", static_cast<int>(R[x])); R 100 modules/java/android_test/src/org/opencv/test/OpenCVTestRunner.java LENA_PATH = Utils.exportResource(context, R.drawable.lena); R 101 modules/java/android_test/src/org/opencv/test/OpenCVTestRunner.java CHESS_PATH = Utils.exportResource(context, R.drawable.chessboard); R 102 modules/java/android_test/src/org/opencv/test/OpenCVTestRunner.java LBPCASCADE_FRONTALFACE_PATH = Utils.exportResource(context, R.raw.lbpcascade_frontalface); R 1756 modules/java/generator/src/cpp/Mat.cpp #define PUT_ITEM(T, R, C) { T*dst = (T*)me->ptr(R, C); for(int ch=0; ch<me->channels() && count>0; count--,ch++,src++,dst++) *dst = cv::saturate_cast<T>(*src); } R 5 modules/java/generator/src/java/android+CameraBridgeViewBase.java import org.opencv.R; R 74 modules/java/generator/src/java/android+CameraBridgeViewBase.java TypedArray styledAttrs = getContext().obtainStyledAttributes(attrs, R.styleable.CameraBridgeViewBase); R 75 modules/java/generator/src/java/android+CameraBridgeViewBase.java if (styledAttrs.getBoolean(R.styleable.CameraBridgeViewBase_show_fps, false)) R 78 modules/java/generator/src/java/android+CameraBridgeViewBase.java mCameraIndex = styledAttrs.getInt(R.styleable.CameraBridgeViewBase_camera_id, -1); R 432 modules/ml/src/kdtree.cpp const float* R = upperBound.ptr<float>(); R 452 modules/ml/src/kdtree.cpp if( row[j] < L[j] || row[j] >= R[j] ) R 460 modules/ml/src/kdtree.cpp if( R[n.idx] > n.boundary ) R 192 modules/ml/src/svm.cpp Mat R( 1, vcount, QFLOAT_TYPE, results ); R 195 modules/ml/src/svm.cpp pow( R, params.degree, R ); R 251 modules/ml/src/svm.cpp Mat R( 1, vcount, QFLOAT_TYPE, results ); R 252 modules/ml/src/svm.cpp exp( R, R ); R 278 modules/ml/src/svm.cpp Mat R( 1, vcount, QFLOAT_TYPE, results ); R 299 modules/ml/src/svm.cpp exp( R, R ); R 670 modules/ml/src/tree.cpp double L = 0, R = 0, lsum2 = 0, rsum2 = 0; R 674 modules/ml/src/tree.cpp R += wval; R 684 modules/ml/src/tree.cpp L += wval; R -= wval; R 693 modules/ml/src/tree.cpp double val = (lsum2*R + rsum2*L)/(L*R); R 834 modules/ml/src/tree.cpp double L = 0, R = 0; R 891 modules/ml/src/tree.cpp R += c_weights[j]; R 931 modules/ml/src/tree.cpp R -= weight; R 945 modules/ml/src/tree.cpp R += weight; R 948 modules/ml/src/tree.cpp if( L > FLT_EPSILON && R > FLT_EPSILON ) R 950 modules/ml/src/tree.cpp double val = (lsum2*R + rsum2*L)/(L*R); R 1000 modules/ml/src/tree.cpp double L = 0, R = 0; R 1007 modules/ml/src/tree.cpp R += weights[si]; R 1021 modules/ml/src/tree.cpp L += wval; R -= wval; R 1026 modules/ml/src/tree.cpp double val = (lsum*lsum*R + rsum*rsum*L)/(L*R); R 1062 modules/ml/src/tree.cpp double L = 0, R = 0, best_val = initQuality, lsum = 0, rsum = 0; R 1081 modules/ml/src/tree.cpp R += counts[i]; R 1103 modules/ml/src/tree.cpp rsum -= s; R -= ni; R 1105 modules/ml/src/tree.cpp if( L > FLT_EPSILON && R > FLT_EPSILON ) R 1107 modules/ml/src/tree.cpp double val = (lsum*lsum*R + rsum*rsum*L)/(L*R); R 69 modules/stitching/include/opencv2/stitching/detail/camera.hpp Mat R; // Rotation R 71 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual Point2f warpPoint(const Point2f &pt, InputArray K, InputArray R) = 0; R 82 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) = 0; R 94 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 107 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual void warpBackward(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 116 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual Rect warpRoi(Size src_size, InputArray K, InputArray R) = 0; R 127 modules/stitching/include/opencv2/stitching/detail/warpers.hpp InputArray R = Mat::eye(3, 3, CV_32F), R 144 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point2f warpPoint(const Point2f &pt, InputArray K, InputArray R); R 146 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap); R 148 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 151 modules/stitching/include/opencv2/stitching/detail/warpers.hpp void warpBackward(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 154 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect warpRoi(Size src_size, InputArray K, InputArray R); R 189 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point2f warpPoint(const Point2f &pt, InputArray K, InputArray R); R 190 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point2f warpPoint(const Point2f &pt, InputArray K, InputArray R, InputArray T); R 192 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual Rect buildMaps(Size src_size, InputArray K, InputArray R, InputArray T, OutputArray xmap, OutputArray ymap); R 193 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap); R 195 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, R 197 modules/stitching/include/opencv2/stitching/detail/warpers.hpp virtual Point warp(InputArray src, InputArray K, InputArray R, InputArray T, int interp_mode, int border_mode, R 200 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect warpRoi(Size src_size, InputArray K, InputArray R); R 201 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect warpRoi(Size src_size, InputArray K, InputArray R, InputArray T); R 229 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap); R 230 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst); R 254 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap); R 255 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst); R 410 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) R 412 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect result = buildMaps(src_size, K, R, d_xmap_, d_ymap_); R 418 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, InputArray T, OutputArray xmap, OutputArray ymap) R 420 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect result = buildMaps(src_size, K, R, T, d_xmap_, d_ymap_); R 426 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 430 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point result = warp(d_src_, K, R, interp_mode, border_mode, d_dst_); R 435 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, InputArray T, int interp_mode, int border_mode, R 439 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point result = warp(d_src_, K, R, T, interp_mode, border_mode, d_dst_); R 444 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, cuda::GpuMat & xmap, cuda::GpuMat & ymap); R 446 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, InputArray T, cuda::GpuMat & xmap, cuda::GpuMat & ymap); R 448 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(const cuda::GpuMat & src, InputArray K, InputArray R, int interp_mode, int border_mode, R 451 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(const cuda::GpuMat & src, InputArray K, InputArray R, InputArray T, int interp_mode, int border_mode, R 464 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) R 466 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect result = buildMaps(src_size, K, R, d_xmap_, d_ymap_); R 472 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 476 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point result = warp(d_src_, K, R, interp_mode, border_mode, d_dst_); R 481 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, cuda::GpuMat & xmap, cuda::GpuMat & ymap); R 483 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(const cuda::GpuMat & src, InputArray K, InputArray R, int interp_mode, int border_mode, R 496 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) R 498 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect result = buildMaps(src_size, K, R, d_xmap_, d_ymap_); R 504 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 508 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point result = warp(d_src_, K, R, interp_mode, border_mode, d_dst_); R 513 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Rect buildMaps(Size src_size, InputArray K, InputArray R, cuda::GpuMat & xmap, cuda::GpuMat & ymap); R 515 modules/stitching/include/opencv2/stitching/detail/warpers.hpp Point warp(const cuda::GpuMat & src, InputArray K, InputArray R, int interp_mode, int border_mode, R 56 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp Point2f RotationWarperBase<P>::warpPoint(const Point2f &pt, InputArray K, InputArray R) R 58 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp projector_.setCameraParams(K, R); R 66 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp Rect RotationWarperBase<P>::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray _xmap, OutputArray _ymap) R 68 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp projector_.setCameraParams(K, R); R 94 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp Point RotationWarperBase<P>::warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 98 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp Rect dst_roi = buildMaps(src.size(), K, R, xmap, ymap); R 108 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp void RotationWarperBase<P>::warpBackward(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, R 111 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp projector_.setCameraParams(K, R); R 139 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp Rect RotationWarperBase<P>::warpRoi(Size src_size, InputArray K, InputArray R) R 141 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp projector_.setCameraParams(K, R); R 80 modules/stitching/perf/opencl/perf_warpers.cpp R = Mat::eye(3, 3, CV_32FC1); R 88 modules/stitching/perf/opencl/perf_warpers.cpp return warper->buildMaps(src_size, K, R, xmap, ymap); R 93 modules/stitching/perf/opencl/perf_warpers.cpp return warper->warp(src, K, R, interp_mode, border_mode, dst); R 98 modules/stitching/perf/opencl/perf_warpers.cpp Mat K, R; R 49 modules/stitching/src/camera.cpp R(Mat::eye(3, 3, CV_64F)), t(Mat::zeros(3, 1, CV_64F)) {} R 59 modules/stitching/src/camera.cpp R = other.R.clone(); R 81 modules/stitching/src/motion_estimators.cpp Mat R = K_from.inv() * pairwise_matches[pair_idx].H.inv() * K_to; R 82 modules/stitching/src/motion_estimators.cpp cameras[edge.to].R = cameras[edge.from].R * R; R 271 modules/stitching/src/motion_estimators.cpp Mat R_inv = cameras[span_tree_centers[0]].R.inv(); R 273 modules/stitching/src/motion_estimators.cpp cameras[i].R = R_inv * cameras[i].R; R 293 modules/stitching/src/motion_estimators.cpp svd(cameras[i].R, SVD::FULL_UV); R 294 modules/stitching/src/motion_estimators.cpp Mat R = svd.u * svd.vt; R 295 modules/stitching/src/motion_estimators.cpp if (determinant(R) < 0) R 296 modules/stitching/src/motion_estimators.cpp R *= -1; R 299 modules/stitching/src/motion_estimators.cpp Rodrigues(R, rvec); R 321 modules/stitching/src/motion_estimators.cpp Rodrigues(rvec, cameras[i].R); R 324 modules/stitching/src/motion_estimators.cpp cameras[i].R.convertTo(tmp, CV_32F); R 325 modules/stitching/src/motion_estimators.cpp cameras[i].R = tmp; R 471 modules/stitching/src/motion_estimators.cpp svd(cameras[i].R, SVD::FULL_UV); R 472 modules/stitching/src/motion_estimators.cpp Mat R = svd.u * svd.vt; R 473 modules/stitching/src/motion_estimators.cpp if (determinant(R) < 0) R 474 modules/stitching/src/motion_estimators.cpp R *= -1; R 477 modules/stitching/src/motion_estimators.cpp Rodrigues(R, rvec); R 496 modules/stitching/src/motion_estimators.cpp Rodrigues(rvec, cameras[i].R); R 499 modules/stitching/src/motion_estimators.cpp cameras[i].R.convertTo(tmp, CV_32F); R 500 modules/stitching/src/motion_estimators.cpp cameras[i].R = tmp; R 670 modules/stitching/src/motion_estimators.cpp Mat R = Mat::zeros(3, 3, CV_32F); R 671 modules/stitching/src/motion_estimators.cpp Mat tmp = R.row(0); R 673 modules/stitching/src/motion_estimators.cpp tmp = R.row(1); R 675 modules/stitching/src/motion_estimators.cpp tmp = R.row(2); R 679 modules/stitching/src/motion_estimators.cpp rmats[i] = R * rmats[i]; R 182 modules/stitching/src/stitcher.cpp corners[i] = w->warp(seam_est_imgs_[i], K, cameras_[i].R, INTER_LINEAR, BORDER_CONSTANT, images_warped[i]); R 185 modules/stitching/src/stitcher.cpp w->warp(masks[i], K, cameras_[i].R, INTER_NEAREST, BORDER_CONSTANT, masks_warped[i]); R 261 modules/stitching/src/stitcher.cpp Rect roi = w->warpRoi(sz, K, cameras_[i].R); R 288 modules/stitching/src/stitcher.cpp w->warp(img, K, cameras_[img_idx].R, INTER_LINEAR, BORDER_CONSTANT, img_warped); R 297 modules/stitching/src/stitcher.cpp w->warp(mask, K, cameras_[img_idx].R, INTER_NEAREST, BORDER_CONSTANT, mask_warped); R 497 modules/stitching/src/stitcher.cpp Mat R; R 498 modules/stitching/src/stitcher.cpp cameras_[i].R.convertTo(R, CV_32F); R 499 modules/stitching/src/stitcher.cpp cameras_[i].R = R; R 525 modules/stitching/src/stitcher.cpp rmats.push_back(cameras_[i].R.clone()); R 528 modules/stitching/src/stitcher.cpp cameras_[i].R = rmats[i]; R 51 modules/stitching/src/warpers.cpp Mat K = _K.getMat(), R = _R.getMat(), T = _T.getMat(); R 54 modules/stitching/src/warpers.cpp CV_Assert(R.size() == Size(3, 3) && R.type() == CV_32F); R 62 modules/stitching/src/warpers.cpp Mat_<float> Rinv = R.t(); R 67 modules/stitching/src/warpers.cpp Mat_<float> R_Kinv = R * K.inv(); R 82 modules/stitching/src/warpers.cpp Point2f PlaneWarper::warpPoint(const Point2f &pt, InputArray K, InputArray R, InputArray T) R 84 modules/stitching/src/warpers.cpp projector_.setCameraParams(K, R, T); R 90 modules/stitching/src/warpers.cpp Point2f PlaneWarper::warpPoint(const Point2f &pt, InputArray K, InputArray R) R 94 modules/stitching/src/warpers.cpp return warpPoint(pt, K, R, T); R 97 modules/stitching/src/warpers.cpp Rect PlaneWarper::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) R 99 modules/stitching/src/warpers.cpp return buildMaps(src_size, K, R, Mat::zeros(3, 1, CV_32FC1), xmap, ymap); R 102 modules/stitching/src/warpers.cpp Rect PlaneWarper::buildMaps(Size src_size, InputArray K, InputArray R, InputArray T, OutputArray _xmap, OutputArray _ymap) R 104 modules/stitching/src/warpers.cpp projector_.setCameraParams(K, R, T); R 153 modules/stitching/src/warpers.cpp Point PlaneWarper::warp(InputArray src, InputArray K, InputArray R, InputArray T, int interp_mode, int border_mode, R 157 modules/stitching/src/warpers.cpp Rect dst_roi = buildMaps(src.size(), K, R, T, uxmap, uymap); R 165 modules/stitching/src/warpers.cpp Point PlaneWarper::warp(InputArray src, InputArray K, InputArray R, R 170 modules/stitching/src/warpers.cpp return warp(src, K, R, T, interp_mode, border_mode, dst); R 173 modules/stitching/src/warpers.cpp Rect PlaneWarper::warpRoi(Size src_size, InputArray K, InputArray R, InputArray T) R 175 modules/stitching/src/warpers.cpp projector_.setCameraParams(K, R, T); R 183 modules/stitching/src/warpers.cpp Rect PlaneWarper::warpRoi(Size src_size, InputArray K, InputArray R) R 187 modules/stitching/src/warpers.cpp return warpRoi(src_size, K, R, T); R 311 modules/stitching/src/warpers.cpp Rect SphericalWarper::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) R 319 modules/stitching/src/warpers.cpp projector_.setCameraParams(K, R); R 343 modules/stitching/src/warpers.cpp return RotationWarperBase<SphericalProjector>::buildMaps(src_size, K, R, xmap, ymap); R 346 modules/stitching/src/warpers.cpp Point SphericalWarper::warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst) R 349 modules/stitching/src/warpers.cpp Rect dst_roi = buildMaps(src.size(), K, R, uxmap, uymap); R 359 modules/stitching/src/warpers.cpp Rect CylindricalWarper::buildMaps(Size src_size, InputArray K, InputArray R, OutputArray xmap, OutputArray ymap) R 367 modules/stitching/src/warpers.cpp projector_.setCameraParams(K, R); R 392 modules/stitching/src/warpers.cpp return RotationWarperBase<CylindricalProjector>::buildMaps(src_size, K, R, xmap, ymap); R 395 modules/stitching/src/warpers.cpp Point CylindricalWarper::warp(InputArray src, InputArray K, InputArray R, int interp_mode, int border_mode, OutputArray dst) R 398 modules/stitching/src/warpers.cpp Rect dst_roi = buildMaps(src.size(), K, R, uxmap, uymap); R 75 modules/stitching/src/warpers_cuda.cpp Mat R = _R.getMat(); R 79 modules/stitching/src/warpers_cuda.cpp CV_Assert( R.size() == Size(3,3) && R.type() == CV_32FC1 ); R 82 modules/stitching/src/warpers_cuda.cpp Mat K_Rinv = K * R.t(); R 83 modules/stitching/src/warpers_cuda.cpp Mat R_Kinv = R * K.inv(); R 103 modules/stitching/src/warpers_cuda.cpp Mat R = _R.getMat(); R 106 modules/stitching/src/warpers_cuda.cpp CV_Assert( R.size() == Size(3,3) && R.type() == CV_32FC1 ); R 108 modules/stitching/src/warpers_cuda.cpp Mat K_Rinv = K * R.t(); R 109 modules/stitching/src/warpers_cuda.cpp Mat R_Kinv = R * K.inv(); R 128 modules/stitching/src/warpers_cuda.cpp Mat R = _R.getMat(); R 131 modules/stitching/src/warpers_cuda.cpp CV_Assert( R.size() == Size(3,3) && R.type() == CV_32FC1 ); R 133 modules/stitching/src/warpers_cuda.cpp Mat K_Rinv = K * R.t(); R 134 modules/stitching/src/warpers_cuda.cpp Mat R_Kinv = R * K.inv(); R 149 modules/stitching/src/warpers_cuda.cpp Rect cv::detail::PlaneWarperGpu::buildMaps(Size src_size, InputArray K, InputArray R, R 152 modules/stitching/src/warpers_cuda.cpp return buildMaps(src_size, K, R, Mat::zeros(3, 1, CV_32F), xmap, ymap); R 155 modules/stitching/src/warpers_cuda.cpp Rect cv::detail::PlaneWarperGpu::buildMaps(Size src_size, InputArray K, InputArray R, InputArray T, R 161 modules/stitching/src/warpers_cuda.cpp (void)R; R 168 modules/stitching/src/warpers_cuda.cpp projector_.setCameraParams(K, R, T); R 174 modules/stitching/src/warpers_cuda.cpp K, R, T, projector_.scale, xmap, ymap); R 180 modules/stitching/src/warpers_cuda.cpp Point cv::detail::PlaneWarperGpu::warp(const cuda::GpuMat & src, InputArray K, InputArray R, R 184 modules/stitching/src/warpers_cuda.cpp return warp(src, K, R, Mat::zeros(3, 1, CV_32F), interp_mode, border_mode, dst); R 188 modules/stitching/src/warpers_cuda.cpp Point cv::detail::PlaneWarperGpu::warp(const cuda::GpuMat & src, InputArray K, InputArray R, InputArray T, R 195 modules/stitching/src/warpers_cuda.cpp (void)R; R 203 modules/stitching/src/warpers_cuda.cpp Rect dst_roi = buildMaps(src.size(), K, R, T, d_xmap_, d_ymap_); R 210 modules/stitching/src/warpers_cuda.cpp Rect cv::detail::SphericalWarperGpu::buildMaps(Size src_size, InputArray K, InputArray R, cuda::GpuMat & xmap, cuda::GpuMat & ymap) R 215 modules/stitching/src/warpers_cuda.cpp (void)R; R 221 modules/stitching/src/warpers_cuda.cpp projector_.setCameraParams(K, R); R 227 modules/stitching/src/warpers_cuda.cpp K, R, projector_.scale, xmap, ymap); R 233 modules/stitching/src/warpers_cuda.cpp Point cv::detail::SphericalWarperGpu::warp(const cuda::GpuMat & src, InputArray K, InputArray R, R 240 modules/stitching/src/warpers_cuda.cpp (void)R; R 247 modules/stitching/src/warpers_cuda.cpp Rect dst_roi = buildMaps(src.size(), K, R, d_xmap_, d_ymap_); R 255 modules/stitching/src/warpers_cuda.cpp Rect cv::detail::CylindricalWarperGpu::buildMaps(Size src_size, InputArray K, InputArray R, R 261 modules/stitching/src/warpers_cuda.cpp (void)R; R 267 modules/stitching/src/warpers_cuda.cpp projector_.setCameraParams(K, R); R 273 modules/stitching/src/warpers_cuda.cpp K, R, projector_.scale, xmap, ymap); R 279 modules/stitching/src/warpers_cuda.cpp Point cv::detail::CylindricalWarperGpu::warp(const cuda::GpuMat & src, InputArray K, InputArray R, R 286 modules/stitching/src/warpers_cuda.cpp (void)R; R 293 modules/stitching/src/warpers_cuda.cpp Rect dst_roi = buildMaps(src.size(), K, R, d_xmap_, d_ymap_); R 56 modules/stitching/test/ocl/test_warpers.cpp Mat K, R; R 72 modules/stitching/test/ocl/test_warpers.cpp Mat(3, 3, CV_32FC1, rotationMatrix).copyTo(R); R 94 modules/stitching/test/ocl/test_warpers.cpp OCL_OFF(warper->buildMaps(src.size(), K, R, xmap, ymap)); R 95 modules/stitching/test/ocl/test_warpers.cpp OCL_ON(warper->buildMaps(usrc.size(), K, R, uxmap, uymap)); R 97 modules/stitching/test/ocl/test_warpers.cpp OCL_OFF(warper->warp(src, K, R, INTER_LINEAR, BORDER_REPLICATE, dst)); R 98 modules/stitching/test/ocl/test_warpers.cpp OCL_ON(warper->warp(usrc, K, R, INTER_LINEAR, BORDER_REPLICATE, udst)); R 115 modules/stitching/test/ocl/test_warpers.cpp OCL_OFF(warper->buildMaps(src.size(), K, R, xmap, ymap)); R 116 modules/stitching/test/ocl/test_warpers.cpp OCL_ON(warper->buildMaps(usrc.size(), K, R, uxmap, uymap)); R 118 modules/stitching/test/ocl/test_warpers.cpp OCL_OFF(warper->warp(src, K, R, INTER_LINEAR, BORDER_REPLICATE, dst)); R 119 modules/stitching/test/ocl/test_warpers.cpp OCL_ON(warper->warp(usrc, K, R, INTER_LINEAR, BORDER_REPLICATE, udst)); R 136 modules/stitching/test/ocl/test_warpers.cpp OCL_OFF(warper->buildMaps(src.size(), K, R, xmap, ymap)); R 137 modules/stitching/test/ocl/test_warpers.cpp OCL_ON(warper->buildMaps(usrc.size(), K, R, uxmap, uymap)); R 139 modules/stitching/test/ocl/test_warpers.cpp OCL_OFF(warper->warp(src, K, R, INTER_LINEAR, BORDER_REPLICATE, dst)); R 140 modules/stitching/test/ocl/test_warpers.cpp OCL_ON(warper->warp(usrc, K, R, INTER_LINEAR, BORDER_REPLICATE, udst)); R 713 modules/video/src/optflowgf.cpp UMat R[2] = R 721 modules/video/src/optflowgf.cpp if (!polynomialExpansionOcl(pyramid0_[k], R[0])) R 723 modules/video/src/optflowgf.cpp if (!polynomialExpansionOcl(pyramid1_[k], R[1])) R 746 modules/video/src/optflowgf.cpp if (!polynomialExpansionOcl(pyrLevel[i], R[i])) R 751 modules/video/src/optflowgf.cpp if (!updateMatricesOcl(curFlowX, curFlowY, R[0], R[1], M)) R 760 modules/video/src/optflowgf.cpp if (!updateFlow_gaussianBlur(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize, i < numIters-1)) R 765 modules/video/src/optflowgf.cpp if (!updateFlow_boxFilter(R[0], R[1], curFlowX, curFlowY, M, bufM, winSize, i < numIters-1)) R 1144 modules/video/src/optflowgf.cpp Mat R[2], I, M; R 1150 modules/video/src/optflowgf.cpp FarnebackPolyExp( I, R[i], poly_n, poly_sigma ); R 1153 modules/video/src/optflowgf.cpp FarnebackUpdateMatrices( R[0], R[1], flow, M, 0, flow.rows ); R 1158 modules/video/src/optflowgf.cpp FarnebackUpdateFlow_GaussianBlur( R[0], R[1], flow, M, winsize, i < iterations - 1 ); R 1160 modules/video/src/optflowgf.cpp FarnebackUpdateFlow_Blur( R[0], R[1], flow, M, winsize, i < iterations - 1 ); R 256 modules/videostab/src/global_motion.cpp Mat_<float> R = svd.u * svd.vt; R 258 modules/videostab/src/global_motion.cpp R.copyTo(tmp); R 260 modules/videostab/src/global_motion.cpp M(0,2) = mean1.x - R(0,0)*mean0.x - R(0,1)*mean0.y; R 261 modules/videostab/src/global_motion.cpp M(1,2) = mean1.y - R(1,0)*mean0.x - R(1,1)*mean0.y; R 166 modules/viz/src/shapes.cpp Matx33d R = makeTransformToGlobal(xvec, yvec, zvec).rotation(); R 167 modules/viz/src/shapes.cpp Affine3d transform_with_scale(R * length, start_point); R 50 modules/viz/src/vizcore.cpp Affine3d::Mat3 R(axis_x[0], axis_y[0], axis_z[0], R 54 modules/viz/src/vizcore.cpp return Affine3d(R, origin); R 75 modules/viz/src/vtk/vtkTrajectorySource.cpp Matx33d R = dpath->rotation().t(); // transposed because of R 76 modules/viz/src/vtk/vtkTrajectorySource.cpp tensors->SetTuple((vtkIdType)i, R.val); // column major order R 91 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java for (Field field : R.xml.class.getDeclaredFields()) { R 95 platforms/android/service/engine/src/org/opencv/engine/OpenCVEngineService.java final int id = field.getInt(R.xml.class); R 7 platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java import org.opencv.engine.R; R 35 platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java setContentView(R.layout.main); R 42 platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java Button updateButton = (Button) findViewById(R.id.CheckEngineUpdate); R 53 platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java TextView aboutText = (TextView) findViewById(R.id.textView4); R 57 platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java TextView extraText = (TextView) findViewById(R.id.textView6); R 69 platforms/android/service/engine/src/org/opencv/engine/manager/ManagerActivity.java mVersionText = (TextView) findViewById(R.id.textView5); R 76 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java setContentView(R.layout.camera_calibration_surface_view); R 78 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.camera_calibration_java_surface_view); R 113 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java getMenuInflater().inflate(R.menu.calibration, menu); R 121 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java menu.findItem(R.id.preview_mode).setEnabled(true); R 123 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java menu.findItem(R.id.preview_mode).setEnabled(false); R 131 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java case R.id.calibration: R 136 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java case R.id.undistortion: R 141 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java case R.id.comparison: R 146 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java case R.id.calibrate: R 149 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java (Toast.makeText(this, res.getString(R.string.more_samples), Toast.LENGTH_SHORT)).show(); R 160 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java calibrationProgress.setTitle(res.getString(R.string.calibrating)); R 161 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java calibrationProgress.setMessage(res.getString(R.string.please_wait)); R 179 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java res.getString(R.string.calibration_successful) + " " + mCalibrator.getAvgReprojectionError() : R 180 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/CameraCalibrationActivity.java res.getString(R.string.calibration_unsuccessful); R 85 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/OnCameraFrameRender.java Imgproc.putText(comparisonFrame, mResources.getString(R.string.original), new Point(mWidth * 0.1, mHeight * 0.1), R 87 samples/android/camera-calibration/src/org/opencv/samples/cameracalibration/OnCameraFrameRender.java Imgproc.putText(comparisonFrame, mResources.getString(R.string.undistorted), new Point(mWidth * 0.6, mHeight * 0.1), R 73 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java setContentView(R.layout.color_blob_detection_surface_view); R 75 samples/android/color-blob-detection/src/org/opencv/samples/colorblobdetect/ColorBlobDetectionActivity.java mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.color_blob_detection_activity_surface_view); R 71 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java InputStream is = getResources().openRawResource(R.raw.lbpcascade_frontalface); R 125 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java setContentView(R.layout.face_detect_surface_view); R 127 samples/android/face-detection/src/org/opencv/samples/facedetect/FdActivity.java mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.fd_activity_surface_view); R 96 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java setContentView(R.layout.image_manipulations_surface_view); R 98 samples/android/image-manipulations/src/org/opencv/samples/imagemanipulations/ImageManipulationsActivity.java mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.image_manipulations_activity_surface_view); R 55 samples/android/tutorial-1-camerapreview/src/org/opencv/samples/tutorial1/Tutorial1Activity.java setContentView(R.layout.tutorial1_surface_view); R 57 samples/android/tutorial-1-camerapreview/src/org/opencv/samples/tutorial1/Tutorial1Activity.java mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial1_activity_java_surface_view); R 72 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java setContentView(R.layout.tutorial2_surface_view); R 74 samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/Tutorial2Activity.java mOpenCvCameraView = (CameraBridgeViewBase) findViewById(R.id.tutorial2_activity_surface_view); R 70 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java setContentView(R.layout.tutorial3_surface_view); R 72 samples/android/tutorial-3-cameracontrol/src/org/opencv/samples/tutorial3/Tutorial3Activity.java mOpenCvCameraView = (Tutorial3View) findViewById(R.id.tutorial3_activity_java_surface_view); R 137 samples/cpp/3calibration.cpp Mat R, T, E, F; R 140 samples/cpp/3calibration.cpp imageSize, R, T, E, F, R 148 samples/cpp/3calibration.cpp R12 = R; T12 = T; R 152 samples/cpp/3calibration.cpp R13 = R; T13 = T; R 247 samples/cpp/3calibration.cpp Mat cameraMatrix[3], distCoeffs[3], R[3], P[3], R12, T12; R 326 samples/cpp/3calibration.cpp R[0], R[1], R[2], P[0], P[1], P[2], Q, -1., R 330 samples/cpp/3calibration.cpp fs << "R1" << R[0]; R 331 samples/cpp/3calibration.cpp fs << "R2" << R[1]; R 332 samples/cpp/3calibration.cpp fs << "R3" << R[2]; R 344 samples/cpp/3calibration.cpp initUndistortRectifyMap(cameraMatrix[k], distCoeffs[k], R[k], P[k], imageSize, CV_16SC2, map1[k], map2[k]); R 94 samples/cpp/filestorage.cpp Mat R =Mat_<double>::eye(3, 3),T = Mat_<double>::zeros(3, 1); R 95 samples/cpp/filestorage.cpp cout << "R = " << R << "\n"; R 97 samples/cpp/filestorage.cpp fs << "R" << R; R 131 samples/cpp/filestorage.cpp Mat R, T; R 134 samples/cpp/filestorage.cpp fs["R"] >> R; R 137 samples/cpp/filestorage.cpp cout << "R = " << R << "\n"; R 8 samples/cpp/kalman.cpp static inline Point calcPoint(Point2f center, double R, double angle) R 10 samples/cpp/kalman.cpp return center + Point2f((float)cos(angle), (float)-sin(angle))*(float)R; R 55 samples/cpp/kalman.cpp float R = img.cols/3.f; R 57 samples/cpp/kalman.cpp Point statePt = calcPoint(center, R, stateAngle); R 61 samples/cpp/kalman.cpp Point predictPt = calcPoint(center, R, predictAngle); R 69 samples/cpp/kalman.cpp Point measPt = calcPoint(center, R, measAngle); R 115 samples/cpp/select3dobj.cpp static Point3f image2plane(Point2f imgpt, const Mat& R, const Mat& tvec, R 118 samples/cpp/select3dobj.cpp Mat R1 = R.clone(); R 210 samples/cpp/select3dobj.cpp Mat R, selectedObjMask, selectedObjFrame, shownFrame; R 211 samples/cpp/select3dobj.cpp Rodrigues(rvec, R); R 262 samples/cpp/select3dobj.cpp box[npt] = image2plane(imgpt[npt], R, tvec, cameraMatrix, npt<3 ? 0 : Z); R 170 samples/cpp/stereo_calib.cpp Mat R, T, E, F; R 175 samples/cpp/stereo_calib.cpp imageSize, R, T, E, F, R 230 samples/cpp/stereo_calib.cpp imageSize, R, T, R1, R2, P1, P2, Q, R 236 samples/cpp/stereo_calib.cpp fs << "R" << R << "T" << T << "R1" << R1 << "R2" << R2 << "P1" << P1 << "P2" << P2 << "Q" << Q; R 214 samples/cpp/stereo_match.cpp Mat R, T, R1, P1, R2, P2; R 215 samples/cpp/stereo_match.cpp fs["R"] >> R; R 218 samples/cpp/stereo_match.cpp stereoRectify( M1, D1, M2, D2, img_size, R, T, R1, R2, P1, P2, Q, CALIB_ZERO_DISPARITY, -1, img_size, &roi1, &roi2 ); R 518 samples/cpp/stitching_detailed.cpp Mat R; R 519 samples/cpp/stitching_detailed.cpp cameras[i].R.convertTo(R, CV_32F); R 520 samples/cpp/stitching_detailed.cpp cameras[i].R = R; R 566 samples/cpp/stitching_detailed.cpp rmats.push_back(cameras[i].R.clone()); R 569 samples/cpp/stitching_detailed.cpp cameras[i].R = rmats[i]; R 654 samples/cpp/stitching_detailed.cpp corners[i] = warper->warp(images[i], K, cameras[i].R, INTER_LINEAR, BORDER_REFLECT, images_warped[i]); R 657 samples/cpp/stitching_detailed.cpp warper->warp(masks[i], K, cameras[i].R, INTER_NEAREST, BORDER_CONSTANT, masks_warped[i]); R 760 samples/cpp/stitching_detailed.cpp Rect roi = warper->warpRoi(sz, K, cameras[i].R); R 776 samples/cpp/stitching_detailed.cpp warper->warp(img, K, cameras[img_idx].R, INTER_LINEAR, BORDER_REFLECT, img_warped); R 781 samples/cpp/stitching_detailed.cpp warper->warp(mask, K, cameras[img_idx].R, INTER_NEAREST, BORDER_CONSTANT, mask_warped); R 226 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp Ray R((cv::Point3f)C_op, (cv::Point3f)ray); R 241 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp if(this->intersect_MollerTrumbore(R, T, &out)) R 243 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp cv::Point3f tmp_pt = R.getP0() + out*R.getP1(); // P = O + t*D R 251 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.cpp point3d = get_nearest_3D_point(intersections_list, R.getP0()); R 27 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/PnPProblem.h bool intersect_MollerTrumbore(Ray &R, Triangle &T, double *out); R 179 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp double get_rotation_error(const cv::Mat &R_true, const cv::Mat &R) R 182 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp error_mat = R_true * cv::Mat(R.inv()).mul(-1); R 52 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.h double get_rotation_error(const cv::Mat &R_true, const cv::Mat &R); R 75 samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp Mat R = Mat_<uchar>::eye(3, 3), R 90 samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp fs << "R" << R; // cv::Mat R 133 samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp Mat R, T; R 135 samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp fs["R"] >> R; // Read cv::Mat R 140 samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp << "R = " << R << endl; R 69 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp Mat R = Mat(3, 2, CV_8UC3); R 70 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp randu(R, Scalar::all(0), Scalar::all(255)); R 75 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp cout << "R (default) = " << endl << R << endl << endl; R 78 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp cout << "R (python) = " << endl << format(R, Formatter::FMT_PYTHON) << endl << endl; R 81 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp cout << "R (numpy) = " << endl << format(R, Formatter::FMT_NUMPY ) << endl << endl; R 84 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp cout << "R (csv) = " << endl << format(R, Formatter::FMT_CSV ) << endl << endl; R 87 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp cout << "R (c) = " << endl << format(R, Formatter::FMT_C ) << endl << endl;