/external/opencv3/modules/calib3d/test/ |
D | test_affine3d_estimator.cpp | 81 Point3f operator()(const Point3f& p) in operator ()() 83 return Point3f( (float)(p.x * F[0] + p.y * F[1] + p.z * F[2] + F[3]), in operator ()() 99 fpts.ptr<Point3f>()[0] = Point3f( rngIn(1,2), rngIn(1,2), rngIn(5, 6) ); in test4Points() 100 fpts.ptr<Point3f>()[1] = Point3f( rngIn(3,4), rngIn(3,4), rngIn(5, 6) ); in test4Points() 101 fpts.ptr<Point3f>()[2] = Point3f( rngIn(1,2), rngIn(3,4), rngIn(5, 6) ); in test4Points() 102 fpts.ptr<Point3f>()[3] = Point3f( rngIn(3,4), rngIn(1,2), rngIn(5, 6) ); in test4Points() 104 transform(fpts.ptr<Point3f>(), fpts.ptr<Point3f>() + 4, tpts.ptr<Point3f>(), WrapAff(aff)); in test4Points() 124 Point3f operator()(const Point3f& p) in operator ()() 127 return Point3f( p.x + l * (float)rng, p.y + l * (float)rng, p.z + l * (float)rng); in operator ()() 140 const Point3f shift_outl = Point3f(15, 15, 15); in testNPoints() [all …]
|
D | test_chessboardgenerator.hpp | 23 …onst Mat& camMat, const Mat& distCoeffs, const Size2f& squareSize, const Point3f& pos, std::vector… 26 mutable std::vector<Point3f> corners3d; 28 void generateEdge(const Point3f& p1, const Point3f& p2, std::vector<Point3f>& out) const; 30 const Point3f& zero, const Point3f& pb1, const Point3f& pb2, 31 …float sqWidth, float sqHeight, const std::vector<Point3f>& whole, std::vector<Point2f>& corners) c… 32 void generateBasis(Point3f& pb1, Point3f& pb2) const;
|
D | test_chessboardgenerator.cpp | 60 void cv::ChessBoardGenerator::generateEdge(const Point3f& p1, const Point3f& p2, vector<Point3f>& o… in generateEdge() 62 Point3f step = (p2 - p1) * (1.f/squareEdgePointsNum); in generateEdge() 79 void cv::ChessBoardGenerator::generateBasis(Point3f& pb1, Point3f& pb2) const in generateBasis() 104 pb1 = Point3f(b1[0]/len_b1, b1[1]/len_b1, b1[2]/len_b1); in generateBasis() 105 pb2 = Point3f(b2[0]/len_b1, b2[1]/len_b2, b2[2]/len_b2); in generateBasis() 110 … const Point3f& zero, const Point3f& pb1, const Point3f& pb2, in generateChessBoard() 111 … float sqWidth, float sqHeight, const vector<Point3f>& whole, in generateChessBoard() 119 vector<Point3f> pts_square3d; in generateChessBoard() 122 Point3f p1 = zero + (i + 0) * sqWidth * pb1 + (j + 0) * sqHeight * pb2; in generateChessBoard() 123 Point3f p2 = zero + (i + 1) * sqWidth * pb1 + (j + 0) * sqHeight * pb2; in generateChessBoard() [all …]
|
D | test_undistort_points.cpp | 15 void generate3DPointCloud(vector<Point3f>& points, Point3f pmin = Point3f(-1, 16 -1, 5), Point3f pmax = Point3f(1, 1, 10)); 30 void CV_UndistortTest::generate3DPointCloud(vector<Point3f>& points, Point3f pmin, Point3f pmax) in generate3DPointCloud() 32 const Point3f delta = pmax - pmin; in generate3DPointCloud() 35 Point3f p(float(rand()) / RAND_MAX, float(rand()) / RAND_MAX, in generate3DPointCloud() 67 vector<Point3f> points(500); in run()
|
D | test_solvepnp_ransac.cpp | 66 void generate3DPointCloud(vector<Point3f>& points, Point3f pmin = Point3f(-1, in generate3DPointCloud() 67 -1, 5), Point3f pmax = Point3f(1, 1, 10)) in generate3DPointCloud() 69 const Point3f delta = pmax - pmin; in generate3DPointCloud() 72 Point3f p(float(rand()) / RAND_MAX, float(rand()) / RAND_MAX, in generate3DPointCloud() 115 …virtual bool runTest(RNG& rng, int mode, int method, const vector<Point3f>& points, const double* … in runTest() 159 vector<Point3f> points, points_dls; in run() 211 …virtual bool runTest(RNG& rng, int mode, int method, const vector<Point3f>& points, const double* … in runTest() 224 std::vector<Point3f> opoints; in runTest() 227 opoints = std::vector<Point3f>(points.begin(), points.begin()+4); in runTest() 231 opoints = std::vector<Point3f>(points.begin(), points.begin()+50); in runTest() [all …]
|
/external/opencv3/samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/ |
D | PnPProblem.cpp | 17 cv::Point3f CROSS(cv::Point3f v1, cv::Point3f v2); 18 double DOT(cv::Point3f v1, cv::Point3f v2); 19 cv::Point3f SUB(cv::Point3f v1, cv::Point3f v2); 20 cv::Point3f get_nearest_3D_point(std::vector<cv::Point3f> &points_list, cv::Point3f origin); 25 cv::Point3f CROSS(cv::Point3f v1, cv::Point3f v2) in CROSS() 27 cv::Point3f tmp_p; in CROSS() 34 double DOT(cv::Point3f v1, cv::Point3f v2) in DOT() 39 cv::Point3f SUB(cv::Point3f v1, cv::Point3f v2) in SUB() 41 cv::Point3f tmp_p; in SUB() 52 cv::Point3f get_nearest_3D_point(std::vector<cv::Point3f> &points_list, cv::Point3f origin) in get_nearest_3D_point() [all …]
|
D | Mesh.h | 22 explicit Triangle(int id, cv::Point3f V0, cv::Point3f V1, cv::Point3f V2); 25 cv::Point3f getV0() const { return v0_; } in getV0() 26 cv::Point3f getV1() const { return v1_; } in getV1() 27 cv::Point3f getV2() const { return v2_; } in getV2() 33 cv::Point3f v0_, v1_, v2_; 44 explicit Ray(cv::Point3f P0, cv::Point3f P1); 47 cv::Point3f getP0() { return p0_; } in getP0() 48 cv::Point3f getP1() { return p1_; } in getP1() 52 cv::Point3f p0_, p1_; 68 cv::Point3f getVertex(int pos) const { return list_vertex_[pos]; } in getVertex() [all …]
|
D | PnPProblem.h | 26 bool backproject2DPoint(const Mesh *mesh, const cv::Point2f &point2d, cv::Point3f &point3d); 29 cv::Point2f backproject3DPoint(const cv::Point3f &point3d); 30 …bool estimatePose(const std::vector<cv::Point3f> &list_points3d, const std::vector<cv::Point2f> &l… 31 …void estimatePoseRANSAC( const std::vector<cv::Point3f> &list_points3d, const std::vector<cv::Poin… 54 cv::Point3f CROSS(cv::Point3f v1, cv::Point3f v2); 55 double DOT(cv::Point3f v1, cv::Point3f v2); 56 cv::Point3f SUB(cv::Point3f v1, cv::Point3f v2);
|
D | Mesh.cpp | 17 Triangle::Triangle(int id, cv::Point3f V0, cv::Point3f V1, cv::Point3f V2) in Triangle() 34 Ray::Ray(cv::Point3f P0, cv::Point3f P1) { in Ray()
|
D | ModelRegistration.h | 24 std::vector<cv::Point3f> get_points3d() const { return list_points3d_; } in get_points3d() 29 void registerPoint(const cv::Point2f &point2d, const cv::Point3f &point3d); 40 std::vector<cv::Point3f> list_points3d_;
|
D | main_registration.cpp | 73 Point3f point_3d = mesh.getVertex(n_vertex-1); in onMouseModelRegistration() 133 vector<Point3f> list_points3d = registration.get_points3d(); in main() 145 Point3f current_poin3d = mesh.getVertex(n_vertex-1); in main() 168 vector<Point3f> list_points3d = registration.get_points3d(); in main() 204 Point3f point3d; in main()
|
D | Model.h | 23 std::vector<cv::Point3f> get_points3d() const { return list_points3d_in_; } in get_points3d() 29 void add_correspondence(const cv::Point2f &point2d, const cv::Point3f &point3d); 49 std::vector<cv::Point3f> list_points3d_in_;
|
D | main_detection.cpp | 151 vector<Point3f> list_points3d_model = model.get_points3d(); // list with model 3D coordinates in main() 207 …vector<Point3f> list_points3d_model_match; // container for the model 3D coordinates found in the … in main() 212 …Point3f point3d_model = list_points3d_model[ good_matches[match_index].trainIdx ]; // 3D point fr… in main() 295 pose_points2d.push_back(pnp_detection_est.backproject3DPoint(Point3f(0,0,0))); // axis center in main() 296 pose_points2d.push_back(pnp_detection_est.backproject3DPoint(Point3f(l,0,0))); // axis x in main() 297 pose_points2d.push_back(pnp_detection_est.backproject3DPoint(Point3f(0,l,0))); // axis y in main() 298 pose_points2d.push_back(pnp_detection_est.backproject3DPoint(Point3f(0,0,l))); // axis z in main()
|
/external/opencv3/samples/cpp/tutorial_code/viz/ |
D | creating_widgets.cpp | 45 …WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color & color = v… 52 WTriangle::WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color &… in WTriangle() 104 … WTriangle tw(Point3f(0.0,0.0,0.0), Point3f(1.0,1.0,1.0), Point3f(0.0,1.0,0.0), viz::Color::red()); in main()
|
D | widget_pose.cpp | 43 viz::WLine axis(Point3f(-1.0f,-1.0f,-1.0f), Point3f(1.0f,1.0f,1.0f)); in main() 48 viz::WCube cube_widget(Point3f(0.5,0.5,0.0), Point3f(0.0,0.0,-0.5), true, viz::Color::blue()); in main()
|
D | transformations.cpp | 43 Point3f* data = cloud.ptr<cv::Point3f>(); in cvcloud_load() 74 Point3f cam_pos(3.0f,3.0f,3.0f), cam_focal_point(3.0f,3.0f,2.0f), cam_y_dir(-1.0f,0.0f,0.0f); in main()
|
/external/opencv3/doc/tutorials/viz/creating_widgets/ |
D | creating_widgets.markdown | 28 …WTriangle(const Point3f &pt1, const Point3f &pt2, const Point3f &pt3, const viz::Color & color = v… 44 … WTriangle tw(Point3f(0.0,0.0,0.0), Point3f(1.0,1.0,1.0), Point3f(0.0,1.0,0.0), viz::Color::red());
|
/external/opencv3/modules/stitching/src/ |
D | seam_finders.cpp | 737 const float badRegionCost = normL2(Point3f(255.f, 255.f, 255.f), in computeCosts() 738 Point3f(0.f, 0.f, 0.f)); in computeCosts() 1101 const Point3f* dx_row = dx.ptr<Point3f>(y); in find() 1102 const Point3f* dy_row = dy.ptr<Point3f>(y); in find() 1141 float weight = normL2(img1.at<Point3f>(y, x), img2.at<Point3f>(y, x)) + in setGraphWeightsColor() 1142 normL2(img1.at<Point3f>(y, x + 1), img2.at<Point3f>(y, x + 1)) + in setGraphWeightsColor() 1151 float weight = normL2(img1.at<Point3f>(y, x), img2.at<Point3f>(y, x)) + in setGraphWeightsColor() 1152 normL2(img1.at<Point3f>(y + 1, x), img2.at<Point3f>(y + 1, x)) + in setGraphWeightsColor() 1193 float weight = (normL2(img1.at<Point3f>(y, x), img2.at<Point3f>(y, x)) + in setGraphWeightsColorGrad() 1194 … normL2(img1.at<Point3f>(y, x + 1), img2.at<Point3f>(y, x + 1))) / grad + in setGraphWeightsColorGrad() [all …]
|
/external/opencv3/samples/cpp/ |
D | select3dobj.cpp | 104 static void calcChessboardCorners(Size boardSize, float squareSize, vector<Point3f>& corners) in calcChessboardCorners() 110 corners.push_back(Point3f(float(j*squareSize), in calcChessboardCorners() 115 static Point3f image2plane(Point2f imgpt, const Mat& R, const Mat& tvec, in image2plane() 122 return Point3f((float)(v(0,0)*iw), (float)(v(1,0)*iw), (float)Z); in image2plane() 128 const vector<Point3f>& box, int nobjpt, bool runExtraSegmentation) in extract3DBox() 133 vector<Point3f> objpt; in extract3DBox() 146 objpt.push_back(Point3f(objpt[i].x, objpt[i].y, box[3].z)); in extract3DBox() 200 vector<Point3f>& box) in select3DBox() 206 vector<Point3f> tempobj(8); in select3DBox() 244 tempobj[0] = Point3f(dy*len + box[nearestIdx].x, in select3DBox() [all …]
|
D | openni_capture.cpp | 56 Point3f res; in colorizeDisparity() 59 res = Point3f( p, t, V ); in colorizeDisparity() 61 res = Point3f( p, V, q ); in colorizeDisparity() 63 res = Point3f( t, V, p ); in colorizeDisparity() 65 res = Point3f( V, q, p ); in colorizeDisparity() 67 res = Point3f( V, p, t ); in colorizeDisparity() 69 res = Point3f( q, p, V ); in colorizeDisparity()
|
/external/opencv3/modules/calib3d/src/ |
D | ptsetreg.cpp | 407 const Point3f* from = m1.ptr<Point3f>(); in runKernel() 408 const Point3f* to = m2.ptr<Point3f>(); in runKernel() 445 const Point3f* from = m1.ptr<Point3f>(); in computeError() 446 const Point3f* to = m2.ptr<Point3f>(); in computeError() 458 const Point3f& f = from[i]; in computeError() 459 const Point3f& t = to[i]; in computeError() 478 const Point3f* ptr = msi->ptr<Point3f>(); in checkSubset() 486 Point3f d1 = ptr[j] - ptr[i]; in checkSubset() 491 Point3f d2 = ptr[k] - ptr[i]; in checkSubset()
|
/external/opencv3/modules/stitching/include/opencv2/stitching/detail/ |
D | util_inl.hpp | 102 float normL2(const Point3f& a) in normL2() 109 float normL2(const Point3f& a, const Point3f& b) in normL2()
|
/external/opencv3/doc/tutorials/viz/widget_pose/ |
D | widget_pose.markdown | 37 viz::WLine axis(Point3f(-1.0f,-1.0f,-1.0f), Point3f(1.0f,1.0f,1.0f)); 44 viz::WCube cube_widget(Point3f(0.5,0.5,0.0), Point3f(0.0,0.0,-0.5), true, viz::Color::blue());
|
/external/opencv3/modules/cudalegacy/test/ |
D | test_calib3d.cpp | 85 cv::Point3f res = h_dst.at<cv::Point3f>(0, i); in CUDA_TEST_P() 87 cv::Point3f p = src.at<cv::Point3f>(0, i); in CUDA_TEST_P() 88 cv::Point3f res_gold( in CUDA_TEST_P()
|
/external/opencv3/modules/java/generator/src/cpp/ |
D | converters.h | 27 void Mat_to_vector_Point3f(cv::Mat& mat, std::vector<cv::Point3f>& v_point); 34 void vector_Point3f_to_Mat(std::vector<cv::Point3f>& v_point, cv::Mat& mat); 53 void Mat_to_vector_vector_Point3f(cv::Mat& mat, std::vector< std::vector< cv::Point3f > >& vv_pt); 54 void vector_vector_Point3f_to_Mat(std::vector< std::vector< cv::Point3f > >& vv_pt, cv::Mat& mat);
|