CV_PI 186 apps/traincascade/HOGfeatures.cpp float angleScale = (float)(nbins/CV_PI); CV_PI 1607 modules/calib3d/src/calibration.cpp *fovx = 2 * atan(imgWidth / (2 * alphax)) * 180.0 / CV_PI; CV_PI 1610 modules/calib3d/src/calibration.cpp *fovy = 2 * atan(imgHeight / (2 * alphay)) * 180.0 / CV_PI; CV_PI 2885 modules/calib3d/src/calibration.cpp eulerAngles->x = acos(_Qx[1][1]) * (_Qx[1][2] >= 0 ? 1 : -1) * (180.0 / CV_PI); CV_PI 2886 modules/calib3d/src/calibration.cpp eulerAngles->y = acos(_Qy[0][0]) * (_Qy[2][0] >= 0 ? 1 : -1) * (180.0 / CV_PI); CV_PI 2887 modules/calib3d/src/calibration.cpp eulerAngles->z = acos(_Qz[0][0]) * (_Qz[0][1] >= 0 ? 1 : -1) * (180.0 / CV_PI); CV_PI 53 modules/calib3d/src/dls.cpp R_.push_back(rotx(CV_PI/2)); CV_PI 54 modules/calib3d/src/dls.cpp R_.push_back(roty(CV_PI/2)); CV_PI 55 modules/calib3d/src/dls.cpp R_.push_back(rotz(CV_PI/2)); CV_PI 744 modules/calib3d/src/fisheye.cpp finalParam.Init(Vec2d(max(image_size.width, image_size.height) / CV_PI, max(image_size.width, image_size.height) / CV_PI), CV_PI 78 modules/calib3d/src/polynom_solver.cpp x1 = 2 * sqrt_Q * cos((theta + 2 * CV_PI)/ 3.0) - b_a_3; CV_PI 79 modules/calib3d/src/polynom_solver.cpp x2 = 2 * sqrt_Q * cos((theta + 4 * CV_PI)/ 3.0) - b_a_3; CV_PI 233 modules/calib3d/src/quadsubpix.cpp if(cvIsNaN(angle) || cvIsInf(angle) || angle < 0.5 || angle > CV_PI - 0.5) continue; CV_PI 64 modules/calib3d/test/test_affine3.cpp R.val[0] = R.val[4] = std::cos(CV_PI*angle/180.0); CV_PI 65 modules/calib3d/test/test_affine3.cpp R.val[3] = std::sin(CV_PI*angle/180.0); CV_PI 159 modules/calib3d/test/test_cameracalibration.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; CV_PI 160 modules/calib3d/test/test_cameracalibration.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; CV_PI 161 modules/calib3d/test/test_cameracalibration.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; CV_PI 164 modules/calib3d/test/test_cameracalibration.cpp theta1 = fmod(theta0, CV_PI*2); CV_PI 166 modules/calib3d/test/test_cameracalibration.cpp if( theta1 > CV_PI ) CV_PI 167 modules/calib3d/test/test_cameracalibration.cpp theta1 = -(CV_PI*2 - theta1); CV_PI 219 modules/calib3d/test/test_cameracalibration.cpp theta1 = fmod( theta0, CV_PI*2 ); CV_PI 221 modules/calib3d/test/test_cameracalibration.cpp if( theta1 > CV_PI ) CV_PI 222 modules/calib3d/test/test_cameracalibration.cpp theta1 = -(CV_PI*2 - theta1); CV_PI 878 modules/calib3d/test/test_cameracalibration.cpp goodFovx = 2 * atan( imageSize.width / (2 * fx)) * 180.0 / CV_PI; CV_PI 879 modules/calib3d/test/test_cameracalibration.cpp goodFovy = 2 * atan( imageSize.height / (2 * fy)) * 180.0 / CV_PI; CV_PI 191 modules/calib3d/test/test_chessboardgenerator.cpp float ah = static_cast<float>(rng.uniform(-fovx/2 * cov, fovx/2 * cov) * CV_PI / 180); CV_PI 192 modules/calib3d/test/test_chessboardgenerator.cpp float av = static_cast<float>(rng.uniform(-fovy/2 * cov, fovy/2 * cov) * CV_PI / 180); CV_PI 202 modules/calib3d/test/test_chessboardgenerator.cpp float cbHalfWidth = static_cast<float>(norm(p) * sin( std::min(fovx, fovy) * 0.5 * CV_PI / 180)); CV_PI 256 modules/calib3d/test/test_chessboardgenerator.cpp float ah = static_cast<float>(rng.uniform(-fovx/2 * cov, fovx/2 * cov) * CV_PI / 180); CV_PI 257 modules/calib3d/test/test_chessboardgenerator.cpp float av = static_cast<float>(rng.uniform(-fovy/2 * cov, fovy/2 * cov) * CV_PI / 180); CV_PI 86 modules/calib3d/test/test_decompose_projection.cpp rng.fill(rVec, cv::RNG::UNIFORM, -CV_PI, CV_PI); CV_PI 292 modules/calib3d/test/test_fisheye.cpp param.Init(cv::Vec2d(cv::max(imageSize.width, imageSize.height) / CV_PI, cv::max(imageSize.width, imageSize.height) / CV_PI), CV_PI 631 modules/calib3d/test/test_fundam.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; CV_PI 632 modules/calib3d/test/test_fundam.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; CV_PI 633 modules/calib3d/test/test_fundam.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; CV_PI 636 modules/calib3d/test/test_fundam.cpp theta1 = fmod(theta0, CV_PI*2); CV_PI 638 modules/calib3d/test/test_fundam.cpp if( theta1 > CV_PI ) CV_PI 639 modules/calib3d/test/test_fundam.cpp theta1 = -(CV_PI*2 - theta1); CV_PI 732 modules/calib3d/test/test_fundam.cpp theta1 = fmod( theta0, CV_PI*2 ); CV_PI 734 modules/calib3d/test/test_fundam.cpp if( theta1 > CV_PI ) CV_PI 735 modules/calib3d/test/test_fundam.cpp theta1 = -(CV_PI*2 - theta1); CV_PI 929 modules/calib3d/test/test_fundam.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; CV_PI 930 modules/calib3d/test/test_fundam.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; CV_PI 931 modules/calib3d/test/test_fundam.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; CV_PI 1229 modules/calib3d/test/test_fundam.cpp r[0] = cvtest::randReal(rng)*CV_PI*2; CV_PI 1230 modules/calib3d/test/test_fundam.cpp r[1] = cvtest::randReal(rng)*CV_PI*2; CV_PI 1231 modules/calib3d/test/test_fundam.cpp r[2] = cvtest::randReal(rng)*CV_PI*2; CV_PI 279 modules/calib3d/test/test_homography.cpp double fi = cvtest::randReal(rng)*2*CV_PI; CV_PI 131 modules/calib3d/test/test_posit.cpp angleX = (float)(cvtest::randReal(rng)*2*CV_PI); CV_PI 132 modules/calib3d/test/test_posit.cpp angleY = (float)(cvtest::randReal(rng)*2*CV_PI); CV_PI 133 modules/calib3d/test/test_posit.cpp angleZ = (float)(cvtest::randReal(rng)*2*CV_PI); CV_PI 350 modules/calib3d/test/test_undistort.cpp rotation.at<double>(0) = CV_PI*(cvtest::randReal(rng) - (double)0.5); // phi CV_PI 351 modules/calib3d/test/test_undistort.cpp rotation.at<double>(1) = CV_PI*(cvtest::randReal(rng) - (double)0.5); // ksi CV_PI 352 modules/calib3d/test/test_undistort.cpp rotation.at<double>(2) = CV_PI*(cvtest::randReal(rng) - (double)0.5); //khi CV_PI 759 modules/calib3d/test/test_undistort.cpp rotation.at<double>(0) = CV_PI/8*(cvtest::randReal(rng) - (double)0.5); // phi CV_PI 760 modules/calib3d/test/test_undistort.cpp rotation.at<double>(1) = CV_PI/8*(cvtest::randReal(rng) - (double)0.5); // ksi CV_PI 761 modules/calib3d/test/test_undistort.cpp rotation.at<double>(2) = CV_PI/3*(cvtest::randReal(rng) - (double)0.5); //khi CV_PI 58 modules/core/include/opencv2/core/cuda/common.hpp #ifndef CV_PI CV_PI 61 modules/core/include/opencv2/core/cuda/common.hpp #define CV_PI_F ((float)CV_PI) CV_PI 317 modules/core/src/dxt.cpp t = -CV_PI*2/n0; CV_PI 3244 modules/core/src/dxt.cpp w1.im = sin(-CV_PI*t); CV_PI 53 modules/core/src/mathfuncs.cpp static const float atan2_p1 = 0.9997878412794807f*(float)(180/CV_PI); CV_PI 54 modules/core/src/mathfuncs.cpp static const float atan2_p3 = -0.3258083974640975f*(float)(180/CV_PI); CV_PI 55 modules/core/src/mathfuncs.cpp static const float atan2_p5 = 0.1555786518463281f*(float)(180/CV_PI); CV_PI 56 modules/core/src/mathfuncs.cpp static const float atan2_p7 = -0.04432655554792128f*(float)(180/CV_PI); CV_PI 481 modules/core/src/mathfuncs.cpp static const double k2 = (2*CV_PI)/N; CV_PI 493 modules/core/src/mathfuncs.cpp k1 = N/(2*CV_PI); CV_PI 2003 modules/core/src/mathfuncs.cpp x1 = t0 * cos(t1 + (2.*CV_PI/3)) - t2; CV_PI 2004 modules/core/src/mathfuncs.cpp x2 = t0 * cos(t1 + (4.*CV_PI/3)) - t2; CV_PI 5358 modules/core/src/matrix.cpp float _angle = atan(vecs[wd_i][1] / vecs[wd_i][0]) * 180.0f / (float) CV_PI; CV_PI 5369 modules/core/src/matrix.cpp double _angle = angle*CV_PI/180.; CV_PI 260 modules/core/src/opencl/arithm.cl tmp += 2 * CV_PI; \ CV_PI 341 modules/core/src/opencl/arithm.cl dstT tmp = y >= 0 ? 0 : CV_PI * 2; \ CV_PI 342 modules/core/src/opencl/arithm.cl tmp = x < 0 ? CV_PI : tmp; \ CV_PI 343 modules/core/src/opencl/arithm.cl dstT tmp1 = y >= 0 ? CV_PI * 0.5f : CV_PI * 1.5f; \ CV_PI 131 modules/core/src/types.cpp float unionArea = (a_2 + b_2) * (float)CV_PI - intersectionArea; CV_PI 1024 modules/core/test/test_arithm.cpp double scale = angleInDegrees ? 180/CV_PI : 1; CV_PI 1039 modules/core/test/test_arithm.cpp if( a < 0 ) a += CV_PI*2; CV_PI 1054 modules/core/test/test_arithm.cpp if( a < 0 ) a += CV_PI*2; CV_PI 12 modules/core/test/test_dxt.cpp double angle = (inv ? 1 : -1)*CV_PI*2/n; CV_PI 140 modules/core/test/test_dxt.cpp double angle = CV_PI*0.5/n; CV_PI 177 modules/core/test/test_io.cpp fs << "test_list" << "[" << 0.0000000000001 << 2 << CV_PI << -3435345 << "2-502 2-029 3egegeg" << CV_PI 301 modules/core/test/test_io.cpp fabs((double)tl[2] - CV_PI) >= DBL_EPSILON || CV_PI 2433 modules/core/test/test_math.cpp Mat convertedRes = resInRad * 180. / CV_PI; CV_PI 291 modules/core/test/test_rand.cpp V0 *= 2*CV_PI/sdim; CV_PI 91 modules/cudaimgproc/perf/perf_hough.cpp const float theta = static_cast<float>(CV_PI / 180.0); CV_PI 140 modules/cudaimgproc/perf/perf_hough.cpp const float theta = static_cast<float>(CV_PI / 180.0); CV_PI 689 modules/cudaimgproc/src/generalized_hough.cpp return a * CV_PI / 180.0; CV_PI 152 modules/cudaimgproc/src/hough_lines.cpp const int numangle = cvRound(CV_PI / theta_); CV_PI 156 modules/cudaimgproc/src/hough_segments.cpp const int numangle = cvRound(CV_PI / theta_); CV_PI 91 modules/cudaimgproc/test/test_hough.cpp const float theta = (float) (1.5 * CV_PI / 180.0); CV_PI 522 modules/cudaobjdetect/src/hog.cpp float angleScale = (float)(nbins_ / CV_PI); CV_PI 253 modules/cudawarping/perf/perf_warping.cpp const double aplha = CV_PI / 4; CV_PI 303 modules/cudawarping/perf/perf_warping.cpp const double aplha = CV_PI / 4; CV_PI 140 modules/cudawarping/test/test_remap.cpp const double aplha = CV_PI / 4; CV_PI 83 modules/cudawarping/test/test_warp_affine.cpp cv::Mat M = createTransfomMatrix(size, CV_PI / 4); CV_PI 210 modules/cudawarping/test/test_warp_affine.cpp cv::Mat M = createTransfomMatrix(size, CV_PI / 3); CV_PI 260 modules/cudawarping/test/test_warp_affine.cpp cv::Mat M = createTransfomMatrix(src.size(), CV_PI / 4); CV_PI 84 modules/cudawarping/test/test_warp_perspective.cpp cv::Mat M = createTransfomMatrix(size, CV_PI / 4); CV_PI 213 modules/cudawarping/test/test_warp_perspective.cpp cv::Mat M = createTransfomMatrix(size, CV_PI / 3); CV_PI 263 modules/cudawarping/test/test_warp_perspective.cpp cv::Mat M = createTransfomMatrix(src.size(), CV_PI / 4); CV_PI 87 modules/cudev/include/opencv2/cudev/common.hpp #define CV_PI_F ((float)CV_PI) CV_PI 226 modules/features2d/src/blobdetector.cpp double ratio = 4 * CV_PI * area / (perimeter * perimeter); CV_PI 362 modules/features2d/src/brisk.cpp theta = double(rot) * 2 * CV_PI / double(n_rot_); // this is the rotation of the feature CV_PI 368 modules/features2d/src/brisk.cpp alpha = (double(num)) * 2 * CV_PI / double(numberList[ring]); CV_PI 379 modules/features2d/src/brisk.cpp * sin(CV_PI / numberList[ring])); CV_PI 733 modules/features2d/src/brisk.cpp kp.angle = (float)(atan2((float) direction1, (float) direction0) / CV_PI * 180.0); CV_PI 68 modules/features2d/src/draw.cpp float srcAngleRad = p.angle*(float)CV_PI/180.f; CV_PI 817 modules/features2d/src/kaze/AKAZEFeatures.cpp for (ang1 = 0; ang1 < (float)(2.0 * CV_PI); ang1 += 0.15f) { CV_PI 818 modules/features2d/src/kaze/AKAZEFeatures.cpp ang2 = (ang1 + (float)(CV_PI / 3.0) >(float)(2.0*CV_PI) ? ang1 - (float)(5.0*CV_PI / 3.0) : ang1 + (float)(CV_PI / 3.0)); CV_PI 831 modules/features2d/src/kaze/AKAZEFeatures.cpp ((ang > 0 && ang < ang2) || (ang > ang1 && ang < 2.0f*CV_PI))) { CV_PI 616 modules/features2d/src/kaze/KAZEFeatures.cpp for (ang1 = 0; ang1 < 2.0f*CV_PI; ang1 += 0.15f) { CV_PI 617 modules/features2d/src/kaze/KAZEFeatures.cpp ang2 = (ang1 + (float)(CV_PI / 3.0) > (float)(2.0*CV_PI) ? ang1 - (float)(5.0*CV_PI / 3.0) : ang1 + (float)(CV_PI / 3.0)); CV_PI 630 modules/features2d/src/kaze/KAZEFeatures.cpp ((ang > 0 && ang < ang2) || (ang > ang1 && ang < (float)(2.0*CV_PI)))) { CV_PI 117 modules/features2d/src/kaze/fed.cpp float h = cosf((float)CV_PI * (2.0f * (float)k + 1.0f) * c); CV_PI 15 modules/features2d/src/kaze/utils.h return static_cast<float>(CV_PI)-atanf(-y / x); CV_PI 19 modules/features2d/src/kaze/utils.h return static_cast<float>(CV_PI)+atanf(y / x); CV_PI 23 modules/features2d/src/kaze/utils.h return static_cast<float>(2.0 * CV_PI) - atanf(-y / x); CV_PI 228 modules/features2d/src/orb.cpp angle *= (float)(CV_PI/180.f); CV_PI 57 modules/features2d/test/test_rotation_and_scale_invariance.cpp float angleRadian = static_cast<float>(angle * CV_PI / 180); CV_PI 128 modules/features2d/test/test_rotation_and_scale_invariance.cpp return static_cast<float>(CV_PI * minR * minR); CV_PI 144 modules/features2d/test/test_rotation_and_scale_invariance.cpp float unionArea = static_cast<float>(CV_PI) * (r0 * r0 + r1 * r1) - intersectArea; CV_PI 50 modules/hal/src/mathfuncs.cpp static const float atan2_p1 = 0.9997878412794807f*(float)(180/CV_PI); CV_PI 51 modules/hal/src/mathfuncs.cpp static const float atan2_p3 = -0.3258083974640975f*(float)(180/CV_PI); CV_PI 52 modules/hal/src/mathfuncs.cpp static const float atan2_p5 = 0.1555786518463281f*(float)(180/CV_PI); CV_PI 53 modules/hal/src/mathfuncs.cpp static const float atan2_p7 = -0.04432655554792128f*(float)(180/CV_PI); CV_PI 68 modules/hal/src/mathfuncs.cpp float scale = angleInDegrees ? 1 : (float)(CV_PI/180); CV_PI 1105 modules/imgproc/include/opencv2/imgproc.hpp double gamma, double psi = CV_PI*0.5, int ktype = CV_64F ); CV_PI 1678 modules/imgproc/include/opencv2/imgproc.hpp double min_theta = 0, double max_theta = CV_PI ); CV_PI 953 modules/imgproc/include/opencv2/imgproc/imgproc_c.h double min_theta CV_DEFAULT(0), double max_theta CV_DEFAULT(CV_PI)); CV_PI 32 modules/imgproc/perf/opencl/perf_houghLines.cpp Values( CV_PI / 180.0, 0.1 ))) CV_PI 68 modules/imgproc/perf/opencl/perf_houghLines.cpp Values( CV_PI / 180.0, 0.1 ))) CV_PI 67 modules/imgproc/perf/opencl/perf_imgwarp.cpp { cos(CV_PI / 6), -sin(CV_PI / 6), 100.0 }, CV_PI 68 modules/imgproc/perf/opencl/perf_imgwarp.cpp { sin(CV_PI / 6), cos(CV_PI / 6) , -100.0 } CV_PI 98 modules/imgproc/perf/opencl/perf_imgwarp.cpp {cos(CV_PI / 6), -sin(CV_PI / 6), 100.0}, CV_PI 99 modules/imgproc/perf/opencl/perf_imgwarp.cpp {sin(CV_PI / 6), cos(CV_PI / 6), -100.0}, CV_PI 1686 modules/imgproc/src/drawing.cpp Point p(cvRound(pt2.x + tipSize * cos(angle + CV_PI / 4)), CV_PI 1687 modules/imgproc/src/drawing.cpp cvRound(pt2.y + tipSize * sin(angle + CV_PI / 4))); CV_PI 1690 modules/imgproc/src/drawing.cpp p.x = cvRound(pt2.x + tipSize * cos(angle - CV_PI / 4)); CV_PI 1691 modules/imgproc/src/drawing.cpp p.y = cvRound(pt2.y + tipSize * sin(angle - CV_PI / 4)); CV_PI 79 modules/imgproc/src/gabor.cpp double cscale = CV_PI*2/lambd; CV_PI 54 modules/imgproc/src/generalized_hough.cpp return a * CV_PI / 180.0; CV_PI 216 modules/imgproc/src/hough.cpp const float d2r = (float)(CV_PI / 180); CV_PI 242 modules/imgproc/src/hough.cpp int tn = cvFloor( 2 * CV_PI * itheta ); CV_PI 291 modules/imgproc/src/hough.cpp ti0 = cvFloor( (t + CV_PI*0.5) * itheta ); CV_PI 298 modules/imgproc/src/hough.cpp halftn = cvFloor( CV_PI / theta_it ); CV_PI 299 modules/imgproc/src/hough.cpp for( ti1 = 1, phi = theta_it - (float)(CV_PI*0.5), phi1 = (theta_it + t) * itheta; CV_PI 358 modules/imgproc/src/hough.cpp ti0 = cvFloor( (t + CV_PI * 0.5) * istheta ); CV_PI 384 modules/imgproc/src/hough.cpp index % stn * stheta + ti * theta - (float)(CV_PI*0.5)); CV_PI 429 modules/imgproc/src/hough.cpp int numangle = cvRound(CV_PI / theta); CV_PI 735 modules/imgproc/src/hough.cpp if (max_theta < 0 || max_theta > CV_PI ) { CV_PI 800 modules/imgproc/src/hough.cpp int numangle = cvRound(CV_PI / theta); CV_PI 179 modules/imgproc/src/imgwarp.cpp double y0=-(x+3)*CV_PI*0.25, s0 = sin(y0), c0=cos(y0); CV_PI 182 modules/imgproc/src/imgwarp.cpp double y = -(x+3-i)*CV_PI*0.25; CV_PI 6188 modules/imgproc/src/imgwarp.cpp angle *= CV_PI/180; CV_PI 6496 modules/imgproc/src/imgwarp.cpp double cp = cos(phi*2*CV_PI/dsize.height); CV_PI 6497 modules/imgproc/src/imgwarp.cpp double sp = sin(phi*2*CV_PI/dsize.height); CV_PI 6516 modules/imgproc/src/imgwarp.cpp double ascale = ssize.height/(2*CV_PI); CV_PI 6561 modules/imgproc/src/imgwarp.cpp a = 2*CV_PI + a; CV_PI 6617 modules/imgproc/src/imgwarp.cpp double cp = cos(phi*2*CV_PI/dsize.height); CV_PI 6618 modules/imgproc/src/imgwarp.cpp double sp = sin(phi*2*CV_PI/dsize.height); CV_PI 6637 modules/imgproc/src/imgwarp.cpp const double ascale = ssize.height/(2*CV_PI); CV_PI 54 modules/imgproc/src/lsd.cpp #define M_3_2_PI (3 * CV_PI) / 2 // 3/2 pi CV_PI 55 modules/imgproc/src/lsd.cpp #define M_2__PI (2 * CV_PI) // 2 pi CV_PI 68 modules/imgproc/src/lsd.cpp const double DEG_TO_RADS = CV_PI / 180; CV_PI 96 modules/imgproc/src/lsd.cpp while(diff <= -CV_PI) diff += M_2__PI; CV_PI 97 modules/imgproc/src/lsd.cpp while(diff > CV_PI) diff -= M_2__PI; CV_PI 443 modules/imgproc/src/lsd.cpp const double prec = CV_PI * ANG_TH / 180; CV_PI 779 modules/imgproc/src/lsd.cpp if(angle_diff(theta, reg_angle) > prec) { theta += CV_PI; } CV_PI 886 modules/imgproc/src/lsd.cpp r.prec = r.p * CV_PI; CV_PI 962 modules/imgproc/src/lsd.cpp r.prec = r.p * CV_PI; CV_PI 1203 modules/imgproc/src/min_enclosing_triangle.cpp double angle = (std::atan2(y, x) * 180 / CV_PI); CV_PI 584 modules/imgproc/src/phasecorr.cpp double coeff0 = 2.0 * CV_PI / (double)(cols - 1), coeff1 = 2.0f * CV_PI / (double)(rows - 1); CV_PI 386 modules/imgproc/src/rotcalipers.cpp box.angle = (float)(box.angle*180/CV_PI); CV_PI 468 modules/imgproc/src/shapedescr.cpp box.angle = (float)(90 + rp[4]*180/CV_PI); CV_PI 121 modules/imgproc/test/ocl/test_houghlines.cpp thetaStep = CV_PI / 180; CV_PI 175 modules/imgproc/test/ocl/test_houghlines.cpp Values(CV_PI / 180.0, CV_PI / 360.0), // thetaStep CV_PI 133 modules/imgproc/test/test_approxpoly.cpp double deg_to_rad = CV_PI/180.; CV_PI 166 modules/imgproc/test/test_canny.cpp const double tan_pi_8 = tan(CV_PI/8.); CV_PI 167 modules/imgproc/test/test_canny.cpp const double tan_3pi_8 = tan(CV_PI*3/8); CV_PI 1170 modules/imgproc/test/test_convhull.cpp a = cos(box0.angle*CV_PI/180.); CV_PI 1171 modules/imgproc/test/test_convhull.cpp b = sin(box0.angle*CV_PI/180.); CV_PI 1202 modules/imgproc/test/test_convhull.cpp double angle = cvtest::randReal(rng)*CV_PI*2; CV_PI 1670 modules/imgproc/test/test_convhull.cpp double phi0 = 2*CV_PI*i/total; CV_PI 1671 modules/imgproc/test/test_convhull.cpp double phi = CV_PI*angle/180.; CV_PI 1867 modules/imgproc/test/test_convhull.cpp double dphi = CV_PI*2/n; CV_PI 1339 modules/imgproc/test/test_imgwarp.cpp angle = angle*(CV_PI/180.); CV_PI 402 modules/imgproc/test/test_imgwarp_strict.cpp double y0=-(x+3)*CV_PI*0.25, s0 = sin(y0), c0=cos(y0); CV_PI 405 modules/imgproc/test/test_imgwarp_strict.cpp double y = -(x+3-i)*CV_PI*0.25; CV_PI 308 modules/objdetect/src/hog.cpp float angleScale = signedGradient ? (float)(nbins/(2.0*CV_PI)) : (float)(nbins/CV_PI); CV_PI 1119 modules/objdetect/src/hog.cpp float angleScale = signedGradient ? (float)(nbins/(2.0*CV_PI)) : (float)(nbins/CV_PI); CV_PI 1234 modules/objdetect/test/test_cascadeandhog.cpp float angleScale = (float)(_nbins/CV_PI); CV_PI 255 modules/photo/src/seamless_cloning_impl.cpp filter_X[i] = 2.0f * std::cos(static_cast<float>(CV_PI) * (i + 1) / (w - 1)); CV_PI 260 modules/photo/src/seamless_cloning_impl.cpp filter_Y[j] = 2.0f * std::cos(static_cast<float>(CV_PI) * (j + 1) / (h - 1)); CV_PI 293 modules/shape/src/sc_dis.cpp float val = float(std::exp( -float( (p.x-jj)*(p.x-jj) + (p.y-ii)*(p.y-ii) )/(2*sigma*sigma) ) / (sigma*sigma*2*CV_PI)); CV_PI 392 modules/shape/src/sc_dis.cpp double delta=2*CV_PI/nAngularBins; CV_PI 473 modules/shape/src/sc_dis.cpp angleMatrix.at<float>(i,j) = float(fmod(double(angleMatrix.at<float>(i,j)+(double)FLT_EPSILON),2*CV_PI)+CV_PI); CV_PI 253 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp v = scale * (static_cast<float>(CV_PI) - acosf(w == w ? w : 0)); CV_PI 263 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float sinv = sinf(static_cast<float>(CV_PI) - v); CV_PI 265 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float y_ = cosf(static_cast<float>(CV_PI) - v); CV_PI 317 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float v_ = (float)CV_PI - acosf(y_ / sqrtf(x_ * x_ + y_ * y_ + z_ * z_)); CV_PI 332 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float sinv = sinf((float)CV_PI - v_); CV_PI 334 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float y_ = cosf((float)CV_PI - v_); CV_PI 354 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float v_ = (float)CV_PI - acosf(y_ / sqrtf(x_ * x_ + y_ * y_ + z_ * z_)); CV_PI 372 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float sinv = sinf((float)CV_PI - v_); CV_PI 374 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float y_ = cosf((float)CV_PI - v_); CV_PI 571 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp v = scale * logf( tanf( (float)(CV_PI/4) + v_/2 ) ); CV_PI 648 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp v = scale * (static_cast<float>(CV_PI) - acosf(y_ / sqrtf(x_ * x_ + y_ * y_ + z_ * z_))); CV_PI 665 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float sinv = sinf(static_cast<float>(CV_PI) - v); CV_PI 667 modules/stitching/include/opencv2/stitching/detail/warpers_inl.hpp float y0_ = cosf(static_cast<float>(CV_PI) - v); CV_PI 241 modules/stitching/src/warpers.cpp tl_uf = std::min(tl_uf, 0.f); tl_vf = std::min(tl_vf, static_cast<float>(CV_PI * projector_.scale)); CV_PI 242 modules/stitching/src/warpers.cpp br_uf = std::max(br_uf, 0.f); br_vf = std::max(br_vf, static_cast<float>(CV_PI * projector_.scale)); CV_PI 284 modules/stitching/src/warpers.cpp tl_uf = std::min(tl_uf, 0.f); tl_vf = std::min(tl_vf, static_cast<float>(CV_PI * projector_.scale)); CV_PI 285 modules/stitching/src/warpers.cpp br_uf = std::max(br_uf, 0.f); br_vf = std::max(br_vf, static_cast<float>(CV_PI * projector_.scale)); CV_PI 66 modules/stitching/test/ocl/test_warpers.cpp float angle = (float)(30.0 * CV_PI / 180.0); CV_PI 38 modules/video/perf/perf_ecc.cpp angle = CV_PI/30; CV_PI 174 modules/video/src/camshift.cpp theta = CV_PI*0.5 - theta; CV_PI 202 modules/video/src/camshift.cpp box.angle = (float)((CV_PI*0.5+theta)*180./CV_PI); CV_PI 122 modules/video/test/test_camshift.cpp double angle = box0.angle*CV_PI/180.; CV_PI 208 modules/video/test/test_ecc.cpp double angle = CV_PI/30 + CV_PI*rng.uniform((double)-2.f, (double)2.f)/180; CV_PI 807 modules/viz/src/shapes.cpp double fovy = 2.0 * atan2(c_y, f_y) * 180 / CV_PI; CV_PI 825 modules/viz/src/shapes.cpp double fovy = fov[1] * 180 / CV_PI; CV_PI 847 modules/viz/src/shapes.cpp double fovy = 2.0 * atan2(c_y, f_y) * 180.0 / CV_PI; CV_PI 879 modules/viz/src/shapes.cpp double fovy = fov[1] * 180.0 / CV_PI; CV_PI 170 modules/viz/src/vtk/vtkVizInteractorStyle.cpp double angle = cam->GetViewAngle () / 180.0 * CV_PI; CV_PI 97 modules/viz/test/test_precomp.hpp double x = 2 * cos(i * 3 * CV_PI/180.0) * (1.0 + 0.5 * cos(1.2 + i * 1.2 * CV_PI/180.0)); CV_PI 98 modules/viz/test/test_precomp.hpp double y = 0.25 + i/270.0 + sin(j * CV_PI/180.0) * 0.2 * sin(0.6 + j * 1.5 * CV_PI/180.0); CV_PI 99 modules/viz/test/test_precomp.hpp double z = 2 * sin(i * 3 * CV_PI/180.0) * (1.0 + 0.5 * cos(1.2 + i * CV_PI/180.0)); CV_PI 33 modules/viz/test/test_tutorial2.cpp rot_vec[0] += CV_PI * 0.01; CV_PI 34 modules/viz/test/test_tutorial2.cpp rot_vec[1] += CV_PI * 0.01; CV_PI 35 modules/viz/test/test_tutorial2.cpp rot_vec[2] += CV_PI * 0.01; CV_PI 38 modules/viz/test/test_tutorial2.cpp translation_phase += CV_PI * 0.01; CV_PI 32 modules/viz/test/test_tutorial3.cpp Affine3d cloud_pose = Affine3d().rotate(Vec3d(0.0, CV_PI/2, 0.0)).rotate(Vec3d(0.0, 0.0, CV_PI)).translate(Vec3d(0.0, 0.0, 3.0)); CV_PI 103 modules/viz/test/tests_simple.cpp ccol.addCloud(cloud, Color::white(), Affine3d().translate(Vec3d(0, 0, 0)).rotate(Vec3d(CV_PI/2, 0, 0))); CV_PI 123 modules/viz/test/tests_simple.cpp viz.showWidget("cloud1", WPaintedCloud(cloud), Affine3d(Vec3d(0.0, -CV_PI/2, 0.0), Vec3d(-1.5, 0.0, 0.0))); CV_PI 124 modules/viz/test/tests_simple.cpp viz.showWidget("cloud2", WPaintedCloud(cloud, Vec3d(0.0, -0.75, -1.0), Vec3d(0.0, 0.75, 0.0)), Affine3d(Vec3d(0.0, CV_PI/2, 0.0), Vec3d(1.5, 0.0, 0.0))); CV_PI 189 modules/viz/test/tests_simple.cpp double angle = CV_PI/2 * i/64.0; CV_PI 225 modules/viz/test/tests_simple.cpp polyline.at<Vec3d>(i) = Vec3d(i/16.0, cos(i * CV_PI/6), sin(i * CV_PI/6)); CV_PI 294 modules/viz/test/tests_simple.cpp Vec3d pose(sin(a * CV_PI/180), 0.7, cos(a * CV_PI/180)); CV_PI 322 modules/viz/test/tests_simple.cpp Vec3d pose = 5 * Vec3d(sin(3.14 + 2.7 + i*60 * CV_PI/180), 0.4 - i*0.3, cos(3.14 + 2.7 + i*60 * CV_PI/180)); CV_PI 360 modules/viz/test/tests_simple.cpp Vec3d pose(sin(a * CV_PI/180), 0.7, cos(a * CV_PI/180)); CV_PI 362 modules/viz/test/tests_simple.cpp viz.getWidget("img1").cast<WImageOverlay>().setImage(lena * pow(sin(i*10*CV_PI/180) * 0.5 + 0.5, 1.0)); CV_PI 393 modules/viz/test/tests_simple.cpp viz.showWidget("img0", WImage3D(lena, Size2d(1.0, 1.0)), Affine3d(Vec3d(0.0, CV_PI/2, 0.0), Vec3d(.5, 0.0, 0.0))); CV_PI 404 modules/viz/test/tests_simple.cpp viz.getWidget("img0").cast<WImage3D>().setImage(lena * pow(sin(i++*7.5*CV_PI/180) * 0.5 + 0.5, 1.0)); CV_PI 56 samples/cpp/contours2.cpp double angle = (j+5)*CV_PI/21; CV_PI 32 samples/cpp/cout_mat.cpp I.at<double>(1,1) = CV_PI; CV_PI 35 samples/cpp/filestorage.cpp A(97), X(CV_PI), id("mydata1234") CV_PI 35 samples/cpp/houghlines.cpp HoughLines(dst, lines, 1, CV_PI/180, 100, 0, 0 ); CV_PI 51 samples/cpp/houghlines.cpp HoughLinesP(dst, lines, 1, CV_PI/180, 50, 50, 10 ); CV_PI 245 samples/cpp/image_alignment.cpp angle = CV_PI/30 + CV_PI*rng.uniform((double)-2.f, (double)2.f)/180; CV_PI 144 samples/cpp/train_HOG.cpp float radRangeForOneBin = (float)(CV_PI/(float)gradientBinSize); // dividing 180 into 9 bins, how large (in rad) is one bin? CV_PI 92 samples/cpp/tutorial_code/ImgTrans/HoughLines_Demo.cpp HoughLines( edges, s_lines, 1, CV_PI/180, min_threshold + s_trackbar, 0, 0 ); CV_PI 119 samples/cpp/tutorial_code/ImgTrans/HoughLines_Demo.cpp HoughLinesP( edges, p_lines, 1, CV_PI/180, min_threshold + p_trackbar, 30, 10 ); CV_PI 115 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp const double PI = CV_PI; CV_PI 206 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp y = CV_PI/2; CV_PI 211 samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/Utils.cpp y = -CV_PI/2; CV_PI 26 samples/cpp/tutorial_code/core/file_input_output/file_input_output.cpp explicit MyData(int) : A(97), X(CV_PI), id("mydata1234") // explicit to avoid implicit conversion CV_PI 102 samples/cpp/tutorial_code/core/mat_the_basic_image_container/mat_the_basic_image_container.cpp v.push_back( (float)CV_PI); v.push_back(2); v.push_back(3.01f); CV_PI 36 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp p.x = (int) (q.x + 9 * cos(angle + CV_PI / 4)); CV_PI 37 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp p.y = (int) (q.y + 9 * sin(angle + CV_PI / 4)); CV_PI 40 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp p.x = (int) (q.x + 9 * cos(angle - CV_PI / 4)); CV_PI 41 samples/cpp/tutorial_code/ml/introduction_to_pca/introduction_to_pca.cpp p.y = (int) (q.y + 9 * sin(angle - CV_PI / 4)); CV_PI 59 samples/cpp/tutorial_code/viz/widget_pose.cpp rot_vec.at<float>(0,0) += CV_PI * 0.01f; CV_PI 60 samples/cpp/tutorial_code/viz/widget_pose.cpp rot_vec.at<float>(0,1) += CV_PI * 0.01f; CV_PI 61 samples/cpp/tutorial_code/viz/widget_pose.cpp rot_vec.at<float>(0,2) += CV_PI * 0.01f; CV_PI 64 samples/cpp/tutorial_code/viz/widget_pose.cpp translation_phase += CV_PI * 0.01f; CV_PI 60 samples/cpp/tvl1_optical_flow.cpp const float a = atan2(-fy, -fx) / (float)CV_PI; CV_PI 44 samples/gpu/houghlines.cpp cv::HoughLinesP(mask, lines_cpu, 1, CV_PI / 180, 50, 60, 5); CV_PI 62 samples/gpu/houghlines.cpp Ptr<cuda::HoughSegmentDetector> hough = cuda::createHoughSegmentDetector(1.0f, (float) (CV_PI / 180.0f), 50, 5); CV_PI 62 samples/gpu/optical_flow.cpp const float a = atan2(-fy, -fx) / (float) CV_PI; CV_PI 58 samples/gpu/pyrlk_optical_flow.cpp p.x = (int) (q.x + 9 * cos(angle + CV_PI / 4)); CV_PI 59 samples/gpu/pyrlk_optical_flow.cpp p.y = (int) (q.y + 9 * sin(angle + CV_PI / 4)); CV_PI 62 samples/gpu/pyrlk_optical_flow.cpp p.x = (int) (q.x + 9 * cos(angle - CV_PI / 4)); CV_PI 63 samples/gpu/pyrlk_optical_flow.cpp p.y = (int) (q.y + 9 * sin(angle - CV_PI / 4)); CV_PI 63 samples/tapi/pyrlk_optical_flow.cpp p.x = (int) (q.x + 9 * cos(angle + CV_PI / 4)); CV_PI 64 samples/tapi/pyrlk_optical_flow.cpp p.y = (int) (q.y + 9 * sin(angle + CV_PI / 4)); CV_PI 67 samples/tapi/pyrlk_optical_flow.cpp p.x = (int) (q.x + 9 * cos(angle - CV_PI / 4)); CV_PI 68 samples/tapi/pyrlk_optical_flow.cpp p.y = (int) (q.y + 9 * sin(angle - CV_PI / 4));