ARToolkit global structure (parameters) subroutines. More...
#include <AR/config.h>
Go to the source code of this file.
Classes | |
struct | ARParam |
camera intrinsic parameters. More... | |
struct | ARSParam |
Functions | |
int | arParamChangeSize (ARParam *source, int xsize, int ysize, ARParam *newparam) |
change the camera size parameters. | |
int | arParamDecomp (ARParam *source, ARParam *icpara, double trans[3][4]) |
XXXBK. | |
int | arParamDecompMat (double source[3][4], double cpara[3][4], double trans[3][4]) |
XXXBK. | |
int | arParamDisp (ARParam *param) |
display parameters. | |
int | arParamGet (double global[][3], double screen[][2], int data_num, double mat[3][4]) |
XXXBK. | |
int | arParamIdeal2Observ (const double dist_factor[4], const double ix, const double iy, double *ox, double *oy) |
Convert ideal screen coordinates of a vertex to observed ones. | |
int | arParamLoad (const char *filename, int num, ARParam *param,...) |
load the camera intrinsic parameters. | |
int | arParamObserv2Ideal (const double dist_factor[4], const double ox, const double oy, double *ix, double *iy) |
Convert observed screen coordinates of a vertex to ideal ones. | |
int | arParamSave (char *filename, int num, ARParam *param,...) |
save a camera intrinsic parameters. | |
int | arsParamChangeSize (ARSParam *source, int xsize, int ysize, ARSParam *newparam) |
int | arsParamDisp (ARSParam *sparam) |
int | arsParamGetMat (double matL[3][4], double matR[3][4], double cparaL[3][4], double cparaR[3][4], double matL2R[3][4]) |
int | arsParamLoad (char *filename, ARSParam *sparam) |
int | arsParamSave (char *filename, ARSParam *sparam) |
ARToolkit global structure (parameters) subroutines.
This file contains principal routines for loading, saving, and modify camera parameters for of ARToolkit library. Different structures are used for modify in run-time this parameters in the library. A file structure is use for input/output.
History :
Definition in file param.h.
change the camera size parameters.
Change the size variable in camera intrinsic parameters.
source | name of the source parameters structure | |
xsize | new length size | |
ysize | new height size | |
newparam | name of the destination parameters structure. |
Definition at line 19 of file paramChangeSize.c.
XXXBK.
XXXBK
source | XXXBK | |
icpara | XXXBK | |
trans | XXXBK |
Definition at line 23 of file paramDecomp.c.
int arParamDecompMat | ( | double | source[3][4], | |
double | cpara[3][4], | |||
double | trans[3][4] | |||
) |
XXXBK.
XXXBK
source | input camera matrix | |
cpara | camera parameter to be set | |
trans | XXXBK |
Definition at line 35 of file paramDecomp.c.
int arParamDisp | ( | ARParam * | param | ) |
display parameters.
Display the structure of the camera instrinsic parameters argument.
param | structure to display |
Definition at line 19 of file paramDisp.c.
int arParamGet | ( | double | global[][3], | |
double | screen[][2], | |||
int | data_num, | |||
double | mat[3][4] | |||
) |
XXXBK.
XXXBK
global | XXXBK | |
screen | XXXBK | |
data_num | XXXBK | |
mat | XXXBK |
Definition at line 21 of file paramGet.c.
int int arParamIdeal2Observ | ( | const double | dist_factor[4], | |
const double | ix, | |||
const double | iy, | |||
double * | ox, | |||
double * | oy | |||
) |
Convert ideal screen coordinates of a vertex to observed ones.
Ideal coordinates mean that the distortion of the camera is compensated (so a straight line looks straight). In observed coordinates the camera-distortion is not compensated and thus a straight line is not shown really straight.
dist_factor | distorsion factors of used camera | |
ix | x in ideal screen coordinates | |
iy | y in ideal screen coordinates | |
ox | resulted x in observed screen coordinates | |
oy | resulted y in observed screen coordinates |
Definition at line 53 of file paramDistortion.c.
int arParamLoad | ( | const char * | filename, | |
int | num, | |||
ARParam * | param, | |||
... | ||||
) |
load the camera intrinsic parameters.
Load camera intrinsic parameters in the ARToolkit Library from a file (itself, an output of the calibration step).
filename | name of the parameters file. | |
num | number of variable arguments | |
param | result of the loaded parameters |
Definition at line 152 of file paramFile.c.
int arParamObserv2Ideal | ( | const double | dist_factor[4], | |
const double | ox, | |||
const double | oy, | |||
double * | ix, | |||
double * | iy | |||
) |
Convert observed screen coordinates of a vertex to ideal ones.
Ideal coordinates mean that the distortion of the camera is compensated (so a straight line looks straight). In observed coordinates the camera-distortion is not compensated and thus a straight line is not shown really straight.
dist_factor | distorsion factors of used camera | |
ox | x in observed screen coordinates | |
oy | y in observed screen coordinates | |
ix | resulted x in ideal screen coordinates | |
iy | resulted y in ideal screen coordinates |
Definition at line 18 of file paramDistortion.c.
int arParamSave | ( | char * | filename, | |
int | num, | |||
ARParam * | param, | |||
... | ||||
) |
save a camera intrinsic parameters.
Save manipulated camera intrinsic parameters in a file.
filename | name of the parameters file. | |
num | number of variable arguments | |
param | parameters to save |
Definition at line 103 of file paramFile.c.
Definition at line 42 of file paramChangeSize.c.
int arsParamDisp | ( | ARSParam * | sparam | ) |
Definition at line 36 of file paramDisp.c.
int arsParamGetMat | ( | double | matL[3][4], | |
double | matR[3][4], | |||
double | cparaL[3][4], | |||
double | cparaR[3][4], | |||
double | matL2R[3][4] | |||
) |
Definition at line 102 of file paramDecomp.c.
int arsParamLoad | ( | char * | filename, | |
ARSParam * | sparam | |||
) |
Definition at line 215 of file paramFile.c.
int arsParamSave | ( | char * | filename, | |
ARSParam * | sparam | |||
) |
Definition at line 189 of file paramFile.c.