#include "distortion.h"
#include <stdio.h>
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. |
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().