| ARX 1.0 The next-generation open source augmented reality toolkit.

Loading...
Searching...
No Matches
Functions
paramChangeSize.c File Reference
`#include <stdio.h>`
`#include <math.h>`
`#include <ARX/AR/ar.h>`
Include dependency graph for paramChangeSize.c:

## Functions
int | arParamChangeSize (ARParam *source, int xsize, int ysize, ARParam *newparam)
| Adjust the size of a camera parameter's viewing plane, e.g. to match a renderer frustum size.
int | arParamChangeSizeWithZoom (ARParam *source, int xsize, int ysize, ARdouble x_zoom, ARdouble y_zoom, ARParam *newparam)

## Function Documentation

## ◆ arParamChangeSize()

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

Adjust the size of a camera parameter's viewing plane, e.g. to match a renderer frustum size.

Given a camera parameter structure, this function scales the camera paameter fundamental matrix, focal length and center, to match the passed-in view-plane size. This is often a size in pixels of the renderer frustum.

Parameters

  source | Pointer to an ARParam structure which will be used as the source parameter.
  xsize | The horizontal dimension of the desired camera image plane.
  ysize | The vertical dimension of the desired camera image plane.
  newparam | Pointer to an ARParam structure which will be filled with the resized parameter. This may be the same value as source, in which case the source parameter will be modified.

Returns
  0 if the function completed successfully, or -1 in case of error.

Here is the call graph for this function:

## ◆ arParamChangeSizeWithZoom()

int arParamChangeSizeWithZoom | ( | ARParam * | source,
|  | int | xsize,
|  | int | ysize,
|  | ARdouble | x_zoom,
|  | ARdouble | y_zoom,
|  | ARParam * | newparam
| ) |  |