polyora/distortion.cpp File Reference

#include "distortion.h"
#include <stdio.h>

Include dependency graph for distortion.cpp:

Go to the source code of this file.

Functions

void distort (const float x, const float y, float distorted[2], const DistortParams &p)
 Computes distorted coordinates from normalized ones.
void undistort (keypoint *kpt, const DistortParams &p)
 convenient function to undistort a keypoint
void undistort (const float _u, const float _v, float xy[2], const DistortParams &p)
 Undistort image coordinates to normalized ones.


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

void undistort ( keypoint kpt,
const DistortParams p 
)

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


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