polyora/distortion.h File Reference

#include "keypoint.h"

Include dependency graph for distortion.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DistortParams

Functions

void distort (const float u, const float v, float distorted[2], const DistortParams &p=defaultCam)
 Computes distorted coordinates from normalized ones.
void undistort (const float distorted_u, const float distorted_v, float uv[2], const DistortParams &p=defaultCam)
 Undistort image coordinates to normalized ones.
void undistort (keypoint *kpt, const DistortParams &p=defaultCam)
 convenient function to undistort a keypoint

Variables

DistortParams defaultCam


Function Documentation

void distort ( const float  u,
const float  v,
float  distorted[2],
const DistortParams p = defaultCam 
)

Computes distorted coordinates from normalized ones.

Definition at line 51 of file distortion.cpp.

References DistortParams::cx, DistortParams::cy, DistortParams::fx, DistortParams::fy, DistortParams::k, and DistortParams::p.

void undistort ( keypoint kpt,
const DistortParams p = defaultCam 
)

convenient function to undistort a keypoint

Definition at line 60 of file distortion.cpp.

References keypoint::fr_u(), keypoint::fr_v(), keypoint::u_undist, undistort(), and keypoint::v_undist.

Referenced by pyr_yape::detect(), and undistort().

void undistort ( const float  distorted_u,
const float  distorted_v,
float  uv[2],
const DistortParams p = defaultCam 
)

Undistort image coordinates to normalized ones.

Definition at line 68 of file distortion.cpp.

References DistortParams::cx, DistortParams::cy, DistortParams::fx, DistortParams::fy, DistortParams::k, and DistortParams::p.


Variable Documentation


Generated on Tue Mar 30 15:53:21 2010 for Polyora by  doxygen 1.5.9