2011年10月12日

堆和栈

摘要: CvPoint3D32f ray_cross( CvMat* intr1, CvMat* rot1, CvMat* tran1, CvPoint2D32f pt1, CvMat* intr2, CvMat* rot2, CvMat* tran2, CvPoint2D32f pt2, double* err, int* f1, int* f2){ // alloc data structure CvMat* Q1 = cvCreateMat(3,3,CV_64F); CvMat* Q2 = cvCreateMat(3,3,CV_64F); CvMat* q1 = cvCrea... 阅读全文

posted @ 2011-10-12 15:36 伪君 阅读(339) 评论(0) 推荐(0) 编辑

stereo

摘要: void stereo_rectify(double*_K, CvSize image_size, double* _rot, double* _tran, double* _R1, double* _R2, double* _P1, double* _P2){ CvMat K_matrix = cvMat(3,3, CV_64F, _K); CvMat rot_mat = cvMat(3,3, CV_64F, _rot); CvMat tran_mat = cvMat(3, 1, CV_64F, _tran); CvMat R1_mat = cvMat(3,3, CV_64F, _R1); 阅读全文

posted @ 2011-10-12 14:39 伪君 阅读(362) 评论(0) 推荐(0) 编辑

decompose

摘要: void decompose_fundamental_matrix(double* mK, double* mF, double* mR, double* vt, CvMat* left_points, CvMat* right_points){ CvMat K_matrix = cvMat(3,3, CV_64F, mK); CvMat rotation_matrix = cvMat(3,3, CV_64F, mR); CvMat translate_vector = cvMat(3,1, CV_64F, vt); int i; int pcount = left_points->ro 阅读全文

posted @ 2011-10-12 14:36 伪君 阅读(705) 评论(0) 推荐(0) 编辑

导航