Classes | Functions
param.h File Reference
#include <AR/config.h>
Include dependency graph for include/AR/param.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)

Function Documentation

int arParamChangeSize ( ARParam source,
int  xsize,
int  ysize,
ARParam newparam 
)

change the camera size parameters.

Change the size variable in camera intrinsic parameters.

Parameters:
sourcename of the source parameters structure
xsizenew length size
ysizenew height size
newparamname of the destination parameters structure.
Returns:
0

Definition at line 19 of file lib/SRC/AR/paramChangeSize.c.

int arParamDecomp ( ARParam source,
ARParam icpara,
double  trans[3][4] 
)

XXXBK.

XXXBK

Parameters:
sourceXXXBK
icparaXXXBK
transXXXBK
Returns:
XXXBK

Definition at line 23 of file lib/SRC/AR/paramDecomp.c.

int arParamDecompMat ( double  source[3][4],
double  cpara[3][4],
double  trans[3][4] 
)

XXXBK.

XXXBK

Parameters:
sourceinput camera matrix
cparacamera parameter to be set
transXXXBK
Returns:
XXXBK

Definition at line 35 of file lib/SRC/AR/paramDecomp.c.

int arParamDisp ( ARParam param)

display parameters.

Display the structure of the camera instrinsic parameters argument.

Parameters:
paramstructure to display
Returns:
0

Definition at line 19 of file lib/SRC/AR/paramDisp.c.

int arParamGet ( double  global[][3],
double  screen[][2],
int  data_num,
double  mat[3][4] 
)

XXXBK.

XXXBK

Parameters:
globalXXXBK
screenXXXBK
data_numXXXBK
matXXXBK
Returns:
XXXBK

Definition at line 21 of file lib/SRC/AR/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.

Parameters:
dist_factordistorsion factors of used camera
ixx in ideal screen coordinates
iyy in ideal screen coordinates
oxresulted x in observed screen coordinates
oyresulted y in observed screen coordinates
Returns:
0 if success, -1 otherwise

Definition at line 53 of file lib/SRC/AR/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).

Parameters:
filenamename of the parameters file.
numnumber of variable arguments
paramresult of the loaded parameters
Returns:
0 if success, -1 if Error (file not found, file structure problem)

Definition at line 152 of file lib/SRC/AR/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.

Parameters:
dist_factordistorsion factors of used camera
oxx in observed screen coordinates
oyy in observed screen coordinates
ixresulted x in ideal screen coordinates
iyresulted y in ideal screen coordinates
Returns:
0 if success, -1 otherwise

Definition at line 18 of file lib/SRC/AR/paramDistortion.c.

int arParamSave ( char *  filename,
int  num,
ARParam param,
  ... 
)

save a camera intrinsic parameters.

Save manipulated camera intrinsic parameters in a file.

Parameters:
filenamename of the parameters file.
numnumber of variable arguments
paramparameters to save
Returns:
0 if success, -1 if Error (file not found, file structure problem)

Definition at line 103 of file lib/SRC/AR/paramFile.c.

int arsParamChangeSize ( ARSParam source,
int  xsize,
int  ysize,
ARSParam newparam 
)

Definition at line 42 of file lib/SRC/AR/paramChangeSize.c.

int arsParamDisp ( ARSParam sparam)

Definition at line 36 of file lib/SRC/AR/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 lib/SRC/AR/paramDecomp.c.

int arsParamLoad ( char *  filename,
ARSParam sparam 
)

Definition at line 215 of file lib/SRC/AR/paramFile.c.

int arsParamSave ( char *  filename,
ARSParam sparam 
)

Definition at line 189 of file lib/SRC/AR/paramFile.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:01