aboutsummaryrefslogtreecommitdiff
path: root/src/epnp/opencv_shim.h
blob: 5806971280a60b55bc6cd113c41d1598771bd129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
int cvRound(float f);
#define CV_Error(code, msg) assert(0 && msg); // cv::error( code, msg, CV_Func, __FILE__, __LINE__ )

#include "shim_types_c.h"

void print_mat(const CvMat *M);

CvMat *cvCreateMat(int height, int width, int type);
double cvInvert(const CvMat *srcarr, CvMat *dstarr, int method);
void cvGEMM(const CvMat *src1, const CvMat *src2, double alpha, const CvMat *src3, double beta, CvMat *dst, int tABC);
int cvSolve(const CvMat *Aarr, const CvMat *Barr, CvMat *xarr, int method);
void cvSetZero(CvMat *arr);
void cvCopyTo(const CvMat *src, CvMat *dest);
CvMat *cvCloneMat(const CvMat *mat);
void cvReleaseMat(CvMat **mat);
void cvSVD(CvMat *aarr, CvMat *warr, CvMat *uarr, CvMat *varr, int flags);
void cvMulTransposed(const CvMat *src, CvMat *dst, int order, const CvMat *delta, double scale);

#define CV_SVD 1
#define CV_SVD_MODIFY_A 1
#define CV_SVD_SYM 2
#define CV_SVD_U_T 2
#define CV_SVD_V_T 4
extern const int DECOMP_SVD;
extern const int DECOMP_LU;

#define GEMM_1_T 1
#define GEMM_2_T 2
#define GEMM_3_T 4