#include <math.h>
#include <gsl/gsl_math.h>
#include "gpc.h"
#include "gpc_utils.h"
Go to the source code of this file.
|
#define | M(matrix, rows, col) static gsl_matrix*matrix=0; if(!matrix) matrix = gsl_matrix_alloc(rows,col); |
|
#define | MF(matrix) /*gsl_matrix_free(matrix)*/ |
|
#define M |
( |
|
matrix, |
|
|
|
rows, |
|
|
|
col |
|
) |
| static gsl_matrix*matrix=0; if(!matrix) matrix = gsl_matrix_alloc(rows,col); |
Definition at line 25 of file gpc.c.
#define MF |
( |
|
matrix | ) |
/*gsl_matrix_free(matrix)*/ |
Definition at line 26 of file gpc.c.
double gpc_error |
( |
const struct gpc_corr * |
co, |
|
|
const double * |
x |
|
) |
| |
Computes error for a single correspondence
Definition at line 285 of file gpc.c.
int gpc_solve |
( |
int |
K, |
|
|
const struct gpc_corr * |
, |
|
|
const double * |
x0, |
|
|
const double * |
cov_x0, |
|
|
double * |
x |
|
) |
| |
if c[k].valid is 0, the correspondence is not used
Definition at line 29 of file gpc.c.
double gpc_total_error |
( |
const struct gpc_corr * |
co, |
|
|
int |
n, |
|
|
const double * |
x |
|
) |
| |