m3.h

来自「这是著名的Tsai摄像机内外参数标定的源码」· C头文件 代码 · 共 28 行

H
28
字号
#ifndef _M3_H
#define _M3_H

#ifdef __cplusplus
extern "C" {
#endif
/******************** 
 * TAD 3x3 Matrix		*
 * Marcelo Gattass	*
 * May 20,2006			*
 *******************/

double m3Det(double* A);                            /* computes the determinant of the matrix [A]     */
double m3Trace(double* A);                          /* computes the trace of the matrix [A]           */
double m3Inv( double* A, double* Ainv );            /* computes the inverse,[Ainv], of the matrix [A] */ 
void m3Cross(double *a,double *b,double *c);				/* computes the cross product {c} = {a}x{b}       */
void m3MultAB(double* A, double* B, double* AB);    /* computes the matrix product [AB]=[A][B]        */
void m3MultAb(double* A, double* b, double* x);     /* computes the transformation {x}=[A]{b}         */
double m3SolvAxb(double* A, double* b, double* x);  /* computes the solution of [A]{x}={b}            */
void m3CopyAB(double* A, double* B);								/* copy [A] to [B]							      */
void m3PrintMat(char* text,double* A);              /* print in the console the matrix [A]            */
void m3PrintVet(char* text,double* v);              /* print in the console the vector {v}            */

#ifdef __cplusplus
}
#endif

#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?