diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-15 10:36:09 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-15 10:36:09 -0600 |
commit | 3f8346dcc4b38116ea15543b62a1e859b6a47e85 (patch) | |
tree | 67bb19611859eed904ded5f400cc90a841cf4b8a /src/epnp/opencv_shim.h | |
parent | f7420a8a77e1de0480ffbc4d725869dbe28147e9 (diff) | |
download | libsurvive-3f8346dcc4b38116ea15543b62a1e859b6a47e85.tar.gz libsurvive-3f8346dcc4b38116ea15543b62a1e859b6a47e85.tar.bz2 |
Added first draft of epnp code
Diffstat (limited to 'src/epnp/opencv_shim.h')
-rw-r--r-- | src/epnp/opencv_shim.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/epnp/opencv_shim.h b/src/epnp/opencv_shim.h new file mode 100644 index 0000000..5806971 --- /dev/null +++ b/src/epnp/opencv_shim.h @@ -0,0 +1,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 |