paramDistortion.c File Reference

#include <stdio.h>
#include <math.h>
#include <AR/param.h>
Include dependency graph for paramDistortion.c:

Go to the source code of this file.

Defines

#define PD_LOOP   3

Functions

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 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.

Define Documentation

#define PD_LOOP   3

Definition at line 16 of file paramDistortion.c.


Function Documentation

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_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
Returns:
0 if success, -1 otherwise

Definition at line 53 of file paramDistortion.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_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
Returns:
0 if success, -1 otherwise

Definition at line 18 of file paramDistortion.c.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines


artoolkit
Author(s): Gautier Dumonteil
autogenerated on Fri Jan 11 10:05:49 2013