Home
last modified time | relevance | path

Searched refs:CV_PI (Results 1 – 25 of 121) sorted by relevance

12345

/external/opencv3/modules/viz/test/
Dtest_precomp.hpp97 … double x = 2 * cos(i * 3 * CV_PI/180.0) * (1.0 + 0.5 * cos(1.2 + i * 1.2 * CV_PI/180.0)); in generate_test_trajectory()
98 … 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); in generate_test_trajectory()
99 double z = 2 * sin(i * 3 * CV_PI/180.0) * (1.0 + 0.5 * cos(1.2 + i * CV_PI/180.0)); in generate_test_trajectory()
Dtest_tutorial2.cpp33 rot_vec[0] += CV_PI * 0.01; in tutorial2()
34 rot_vec[1] += CV_PI * 0.01; in tutorial2()
35 rot_vec[2] += CV_PI * 0.01; in tutorial2()
38 translation_phase += CV_PI * 0.01; in tutorial2()
Dtests_simple.cpp103 …ccol.addCloud(cloud, Color::white(), Affine3d().translate(Vec3d(0, 0, 0)).rotate(Vec3d(CV_PI/2, 0,… in TEST()
123 …viz.showWidget("cloud1", WPaintedCloud(cloud), Affine3d(Vec3d(0.0, -CV_PI/2, 0.0), Vec3d(-1.5, 0.0… in TEST()
124 …oud, 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… in TEST()
189 double angle = CV_PI/2 * i/64.0; in TEST()
225 polyline.at<Vec3d>(i) = Vec3d(i/16.0, cos(i * CV_PI/6), sin(i * CV_PI/6)); in TEST()
294 Vec3d pose(sin(a * CV_PI/180), 0.7, cos(a * CV_PI/180)); in TEST()
322 …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… in TEST()
360 Vec3d pose(sin(a * CV_PI/180), 0.7, cos(a * CV_PI/180)); in TEST()
362 …viz.getWidget("img1").cast<WImageOverlay>().setImage(lena * pow(sin(i*10*CV_PI/180) * 0.5 + 0.5, 1… in TEST()
393 …viz.showWidget("img0", WImage3D(lena, Size2d(1.0, 1.0)), Affine3d(Vec3d(0.0, CV_PI/2, 0.0), Vec3d(… in TEST()
[all …]
Dtest_tutorial3.cpp32 …Affine3d cloud_pose = Affine3d().rotate(Vec3d(0.0, CV_PI/2, 0.0)).rotate(Vec3d(0.0, 0.0, CV_PI)).t… in tutorial3()
/external/opencv3/modules/imgproc/perf/opencl/
Dperf_imgwarp.cpp67 { cos(CV_PI / 6), -sin(CV_PI / 6), 100.0 }, in OCL_PERF_TEST_P()
68 { sin(CV_PI / 6), cos(CV_PI / 6) , -100.0 } in OCL_PERF_TEST_P()
98 {cos(CV_PI / 6), -sin(CV_PI / 6), 100.0}, in OCL_PERF_TEST_P()
99 {sin(CV_PI / 6), cos(CV_PI / 6), -100.0}, in OCL_PERF_TEST_P()
Dperf_houghLines.cpp32 Values( CV_PI / 180.0, 0.1 )))
68 Values( CV_PI / 180.0, 0.1 )))
/external/opencv3/samples/cpp/tutorial_code/viz/
Dwidget_pose.cpp59 rot_vec.at<float>(0,0) += CV_PI * 0.01f; in main()
60 rot_vec.at<float>(0,1) += CV_PI * 0.01f; in main()
61 rot_vec.at<float>(0,2) += CV_PI * 0.01f; in main()
64 translation_phase += CV_PI * 0.01f; in main()
/external/opencv3/modules/features2d/src/kaze/
Dutils.h15 return static_cast<float>(CV_PI)-atanf(-y / x); in getAngle()
19 return static_cast<float>(CV_PI)+atanf(y / x); in getAngle()
23 return static_cast<float>(2.0 * CV_PI) - atanf(-y / x); in getAngle()
/external/opencv3/samples/cpp/tutorial_code/ml/introduction_to_pca/
Dintroduction_to_pca.cpp36 p.x = (int) (q.x + 9 * cos(angle + CV_PI / 4)); in drawAxis()
37 p.y = (int) (q.y + 9 * sin(angle + CV_PI / 4)); in drawAxis()
40 p.x = (int) (q.x + 9 * cos(angle - CV_PI / 4)); in drawAxis()
41 p.y = (int) (q.y + 9 * sin(angle - CV_PI / 4)); in drawAxis()
/external/opencv3/samples/tapi/
Dpyrlk_optical_flow.cpp63 p.x = (int) (q.x + 9 * cos(angle + CV_PI / 4)); in drawArrows()
64 p.y = (int) (q.y + 9 * sin(angle + CV_PI / 4)); in drawArrows()
67 p.x = (int) (q.x + 9 * cos(angle - CV_PI / 4)); in drawArrows()
68 p.y = (int) (q.y + 9 * sin(angle - CV_PI / 4)); in drawArrows()
/external/opencv3/samples/gpu/
Dpyrlk_optical_flow.cpp58 p.x = (int) (q.x + 9 * cos(angle + CV_PI / 4)); in drawArrows()
59 p.y = (int) (q.y + 9 * sin(angle + CV_PI / 4)); in drawArrows()
62 p.x = (int) (q.x + 9 * cos(angle - CV_PI / 4)); in drawArrows()
63 p.y = (int) (q.y + 9 * sin(angle - CV_PI / 4)); in drawArrows()
Dhoughlines.cpp44 cv::HoughLinesP(mask, lines_cpu, 1, CV_PI / 180, 50, 60, 5); in main()
62 …ghSegmentDetector> hough = cuda::createHoughSegmentDetector(1.0f, (float) (CV_PI / 180.0f), 50, 5); in main()
/external/opencv3/modules/core/include/opencv2/core/cuda/
Dcommon.hpp58 #ifndef CV_PI
61 #define CV_PI_F ((float)CV_PI)
/external/opencv3/doc/tutorials/viz/widget_pose/
Dwidget_pose.markdown51 rot_vec.at<float>(0,0) += CV_PI * 0.01f;
52 rot_vec.at<float>(0,1) += CV_PI * 0.01f;
53 rot_vec.at<float>(0,2) += CV_PI * 0.01f;
/external/opencv3/modules/stitching/include/opencv2/stitching/detail/
Dwarpers_inl.hpp253 v = scale * (static_cast<float>(CV_PI) - acosf(w == w ? w : 0)); in mapForward()
263 float sinv = sinf(static_cast<float>(CV_PI) - v); in mapBackward()
265 float y_ = cosf(static_cast<float>(CV_PI) - v); in mapBackward()
317 float v_ = (float)CV_PI - acosf(y_ / sqrtf(x_ * x_ + y_ * y_ + z_ * z_)); in mapForward()
332 float sinv = sinf((float)CV_PI - v_); in mapBackward()
334 float y_ = cosf((float)CV_PI - v_); in mapBackward()
354 float v_ = (float)CV_PI - acosf(y_ / sqrtf(x_ * x_ + y_ * y_ + z_ * z_)); in mapForward()
372 float sinv = sinf((float)CV_PI - v_); in mapBackward()
374 float y_ = cosf((float)CV_PI - v_); in mapBackward()
571 v = scale * logf( tanf( (float)(CV_PI/4) + v_/2 ) ); in mapForward()
[all …]
/external/opencv3/samples/cpp/
Dhoughlines.cpp35 HoughLines(dst, lines, 1, CV_PI/180, 100, 0, 0 ); in main()
51 HoughLinesP(dst, lines, 1, CV_PI/180, 50, 50, 10 ); in main()
/external/opencv3/modules/imgproc/test/ocl/
Dtest_houghlines.cpp121 thetaStep = CV_PI / 180; in PARAM_TEST_CASE()
175 … Values(CV_PI / 180.0, CV_PI / 360.0), // thetaStep
/external/opencv3/modules/calib3d/test/
Dtest_decompose_projection.cpp86 rng.fill(rVec, cv::RNG::UNIFORM, -CV_PI, CV_PI); in run()
Dtest_posit.cpp131 angleX = (float)(cvtest::randReal(rng)*2*CV_PI); in run()
132 angleY = (float)(cvtest::randReal(rng)*2*CV_PI); in run()
133 angleZ = (float)(cvtest::randReal(rng)*2*CV_PI); in run()
Dtest_affine3.cpp64 R.val[0] = R.val[4] = std::cos(CV_PI*angle/180.0); in TEST()
65 R.val[3] = std::sin(CV_PI*angle/180.0); in TEST()
Dtest_chessboardgenerator.cpp191 float ah = static_cast<float>(rng.uniform(-fovx/2 * cov, fovx/2 * cov) * CV_PI / 180); in operator ()()
192 float av = static_cast<float>(rng.uniform(-fovy/2 * cov, fovy/2 * cov) * CV_PI / 180); in operator ()()
202 … float cbHalfWidth = static_cast<float>(norm(p) * sin( std::min(fovx, fovy) * 0.5 * CV_PI / 180)); in operator ()()
256 float ah = static_cast<float>(rng.uniform(-fovx/2 * cov, fovx/2 * cov) * CV_PI / 180); in operator ()()
257 float av = static_cast<float>(rng.uniform(-fovy/2 * cov, fovy/2 * cov) * CV_PI / 180); in operator ()()
Dtest_fundam.cpp631 r[0] = cvtest::randReal(rng)*CV_PI*2; in fill_array()
632 r[1] = cvtest::randReal(rng)*CV_PI*2; in fill_array()
633 r[2] = cvtest::randReal(rng)*CV_PI*2; in fill_array()
636 theta1 = fmod(theta0, CV_PI*2); in fill_array()
638 if( theta1 > CV_PI ) in fill_array()
639 theta1 = -(CV_PI*2 - theta1); in fill_array()
732 theta1 = fmod( theta0, CV_PI*2 ); in prepare_to_validation()
734 if( theta1 > CV_PI ) in prepare_to_validation()
735 theta1 = -(CV_PI*2 - theta1); in prepare_to_validation()
929 r[0] = cvtest::randReal(rng)*CV_PI*2; in fill_array()
[all …]
/external/opencv3/samples/cpp/tutorial_code/ImgTrans/
DHoughLines_Demo.cpp92 HoughLines( edges, s_lines, 1, CV_PI/180, min_threshold + s_trackbar, 0, 0 ); in Standard_Hough()
119 HoughLinesP( edges, p_lines, 1, CV_PI/180, min_threshold + p_trackbar, 30, 10 ); in Probabilistic_Hough()
/external/opencv3/modules/video/src/
Dcamshift.cpp174 theta = CV_PI*0.5 - theta; in CamShift()
202 box.angle = (float)((CV_PI*0.5+theta)*180./CV_PI); in CamShift()
/external/opencv3/modules/calib3d/src/
Dpolynom_solver.cpp78 x1 = 2 * sqrt_Q * cos((theta + 2 * CV_PI)/ 3.0) - b_a_3; in solve_deg3()
79 x2 = 2 * sqrt_Q * cos((theta + 4 * CV_PI)/ 3.0) - b_a_3; in solve_deg3()

12345