69#define AR_DIST_FUNCTION_VERSION_DEFAULT 5
74#define AR_DIST_FUNCTION_VERSION_MAX 5
79#define AR_DIST_FACTOR_NUM_MAX 17
84#define AR_PARAM_LT_DEFAULT_OFFSET 15
202#ifdef ARDOUBLE_IS_FLOAT
203#define arParamDecompMatf arParamDecompMat
artoolkitX core routines.
double ARdouble
Definition: ar.h:99
#define AR_EXTERN
Definition: ar.h:131
#define AR_DIST_FACTOR_NUM_MAX
Maximum number of values in a distortion factor array.
Definition: param.h:79
AR_EXTERN int arParamLTSave(char *filename, char *ext, ARParamLT *paramLT)
Definition: paramLT.c:46
AR_EXTERN int arParamLoadOptical(const char *filename, ARdouble *fovy_p, ARdouble *aspect_p, ARdouble m[16])
Definition: paramFile.c:595
AR_EXTERN int arParamLoadExtFromBuffer(const void *buffer, size_t bufsize, ARdouble para[3][4])
Definition: paramFile.c:510
const arParamVersionInfo_t arParamVersionInfo[AR_DIST_FUNCTION_VERSION_MAX]
Constant array with parameters applicable to each version of the camera parameter distortion function...
Definition: paramFile.c:64
AR_EXTERN int arParamDecompMat(const ARdouble source[3][4], ARdouble cpara[3][4], ARdouble trans[3][4])
Definition: paramDecomp.c:77
AR_EXTERN int arParamDecomp(const ARParam *source, ARParam *icpara, ARdouble trans[3][4])
Definition: paramDecomp.c:64
AR_EXTERN int arParamDispOptical(const ARdouble fovy, const ARdouble aspect, const ARdouble m[16])
Definition: paramDisp.c:111
AR_EXTERN int arParamDisp(const ARParam *param)
Definition: paramDisp.c:56
AR_EXTERN int arParamGetPerspectiveMat(ARdouble global[][3], ARdouble idealScreen[][2], int data_num, ARdouble mat[3][4])
Definition: paramGetPerspective.c:60
#define AR_DIST_FUNCTION_VERSION_MAX
Maximum version allowable for functions accepting a "distortion function version" parameter.
Definition: param.h:74
AR_EXTERN int arParamDispExt(ARdouble para[3][4])
Definition: paramDisp.c:97
AR_EXTERN int arParamLoadOpticalFromBuffer(const void *buffer, size_t bufsize, ARdouble *fovy_p, ARdouble *aspect_p, ARdouble m[16])
Definition: paramFile.c:650
AR_EXTERN int arParamObserv2IdealLTf(const ARParamLTf *paramLTf, const float ox, const float oy, float *ix, float *iy)
Use a lookup-table camera parameter to convert observed (distorted) window coordinates to idealised (...
Definition: paramLT.c:286
AR_EXTERN int arParamSaveOptical(const char *filename, const ARdouble fovy, const ARdouble aspect, const ARdouble m[16])
Definition: paramFile.c:540
AR_EXTERN int arParamChangeSize(ARParam *source, int xsize, int ysize, ARParam *newparam)
Definition: paramChangeSize.c:56
AR_EXTERN ARParamLT * arParamLTCreate(ARParam *param, int offset)
Allocate and calculate a lookup-table camera parameter from a standard camera parameter.
Definition: paramLT.c:169
AR_EXTERN int arParamIdeal2Observ(const ARdouble dist_factor[AR_DIST_FACTOR_NUM_MAX], const ARdouble ix, const ARdouble iy, ARdouble *ox, ARdouble *oy, const int dist_function_version)
Use lens distortion parameters to convert idealised (zero-distortion) window coordinates to observed ...
Definition: paramDistortion.c:259
AR_EXTERN int arParamLoad(const char *filename, int num, ARParam *param,...)
Load lens parameters from a file.
Definition: paramFile.c:263
AR_EXTERN int arParamObserv2Ideal(const ARdouble dist_factor[AR_DIST_FACTOR_NUM_MAX], const ARdouble ox, const ARdouble oy, ARdouble *ix, ARdouble *iy, const int dist_function_version)
Use lens distortion parameters to convert observed (distorted) window coordinates to idealised (zero-...
Definition: paramDistortion.c:62
AR_EXTERN int arParamSave(const char *filename, const int num, const ARParam *param,...)
Save lens parameters to a file.
Definition: paramFile.c:197
AR_EXTERN int arParamLoadExt(const char *filename, ARdouble para[3][4])
Definition: paramFile.c:464
AR_EXTERN int arParamSaveExt(const char *filename, ARdouble para[3][4])
Definition: paramFile.c:417
AR_EXTERN int arParamLoadFromBuffer(const void *buffer, size_t bufsize, ARParam *param)
Load lens parameters from a buffer.
Definition: paramFile.c:370
AR_EXTERN int arParamIdeal2ObservLTf(const ARParamLTf *paramLTf, const float ix, const float iy, float *ox, float *oy)
Use a lookup-table camera parameter to convert idealised (zero-distortion) window coordinates to obse...
Definition: paramLT.c:252
AR_EXTERN int arParamClear(ARParam *param, int xsize, int ysize, int dist_function_version)
Create a camera parameter structure representing an idealised lens.
Definition: paramClear.c:53
AR_EXTERN ARParamLT * arParamLTLoad(char *filename, char *ext)
Definition: paramLT.c:92
AR_EXTERN int arParamLTFree(ARParamLT **paramLT_p)
Dispose of a memory allocated to a lookup-table camera parameter.
Definition: paramLT.c:221
AR_EXTERN int arParamDistFactorClear(ARdouble dist_factor[AR_DIST_FACTOR_NUM_MAX], int xsize, int ysize, int dist_function_version)
Definition: paramClear.c:77
AR_EXTERN int arParamClearWithFOVy(ARParam *param, int xsize, int ysize, ARdouble FOVy)
Create a camera parameter structure representing an idealised lens with specified field-of-view.
Definition: paramClear.c:137
AR_EXTERN int arParamDecompMatf(const ARdouble source[3][4], float cpara[3][4], float trans[3][4])
Definition: paramDecomp.c:145
Structure holding camera parameters, including image size, projection matrix and lens distortion para...
Definition: param.h:99
int ysize
The height in pixels of images returned by arVideoGetImage() for the camera.
Definition: param.h:101
int dist_function_version
See function arParamObserv2Ideal() for discussion. Must be last field in structure (as will not be wr...
Definition: param.h:104
int xsize
The width in pixels of images returned by arVideoGetImage() for the camera.
Definition: param.h:100
Structure holding camera parameters, in lookup table form.
Definition: param.h:151
ARParam param
A copy of original ARParam from which the lookup table was calculated.
Definition: param.h:152
ARParamLTf paramLTf
The lookup table.
Definition: param.h:153
Structure holding camera parameters, in lookup table form; floating point version.
Definition: param.h:120
int xsize
The number of pixels in the array's x dimension, including the offset areas on the left and right sid...
Definition: param.h:123
float * i2o
Ideal-to-observed; for the location in the array corresponding to the idealised location,...
Definition: param.h:121
int ysize
The number of pixels in the array's x dimension, including the offset areas on the top and bottom....
Definition: param.h:124
int yOff
The number of pixels from the top edge of the array to row zero of the input.
Definition: param.h:126
float * o2i
Observed-to-ideal; for the location in the array corresponding to the observed location,...
Definition: param.h:122
int xOff
The number of pixels from the left edge of the array to column zero of the input.
Definition: param.h:125
int dist_factor_num
Definition: param.h:108
int ARParam_size
Definition: param.h:109