📄 error_quadric.h
字号:
const int ERROR_QUADRIC_DIMENSIONS = 5;
const int D = ERROR_QUADRIC_DIMENSIONS;
const int ERROR_QUADRIC_MATRIX_ENTRIES = (D * (D + 1)) / 2;
struct Error_Quadric {
double matrix[ERROR_QUADRIC_MATRIX_ENTRIES];
double vector[ERROR_QUADRIC_DIMENSIONS];
double scalar;
static int QuadricMatrixIndexTable[ERROR_QUADRIC_DIMENSIONS * ERROR_QUADRIC_DIMENSIONS];
void clear();
void accumulate_quadric(Error_Quadric *);
void accumulate_plane(float *p0, float *p1,
float *p2, float extra_scale = 1.0f);
double evaluate_error(float *coordinates);
void init_index_table();
private:
double get_matrix_value(int i, int j);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -