#include <camera.h>
The camera distortion model is as follows:
This camera has the advantage that inversion of the radial distortion is trivial, and unproject has a unique, closed-form solution. However, the square root makes this camera slower than some of the other models for many use cases.
Definition at line 231 of file camera.h.
Public Member Functions | |
void | load (std::istream &is) |
void | save (std::ostream &os) |
TooN::Vector< 2 > | linearproject (const TooN::Vector< 2 > &camframe, double scale=1) const |
TooN::Vector< 2 > | project (const TooN::Vector< 2 > &camframe) const |
TooN::Vector< 2 > | unproject (const TooN::Vector< 2 > &imframe) |
TooN::Matrix< 2, 2 > | get_derivative () const |
TooN::Matrix < num_parameters, 2 > | get_parameter_derivs () const |
TooN::Vector < num_parameters > | get_parameter_derivs (const TooN::Vector< 2 > &direction) const |
TooN::Vector < num_parameters > & | get_parameters () |
Static Public Attributes | |
static const int | num_parameters = 5 |
void Camera::Harris::load | ( | std::istream & | is | ) | [inline] |
Load parameters from a stream.
is | The stream to use |
void Camera::Harris::save | ( | std::ostream & | os | ) | [inline] |
TooN::Vector<2> Camera::Harris::linearproject | ( | const TooN::Vector< 2 > & | camframe, | |
double | scale = 1 | |||
) | const [inline] |
TooN::Vector<2> Camera::Harris::project | ( | const TooN::Vector< 2 > & | camframe | ) | const [inline] |
Project from Euclidean camera frame to image plane.
Definition at line 264 of file camera.h.
References linearproject().
TooN::Vector<2> Camera::Harris::unproject | ( | const TooN::Vector< 2 > & | imframe | ) | [inline] |
TooN::Matrix<2,2> Camera::Harris::get_derivative | ( | ) | const [inline] |
TooN::Matrix<num_parameters,2> Camera::Harris::get_parameter_derivs | ( | ) | const [inline] |
Get the motion of a point with respect to each of the internal camera parameters.
Definition at line 307 of file camera.h.
Referenced by get_parameter_derivs().
TooN::Vector<num_parameters> Camera::Harris::get_parameter_derivs | ( | const TooN::Vector< 2 > & | direction | ) | const [inline] |
Get the component of the motion of a point in the direction provided with respect to each of the internal camera parameters.
direction | The (x,y) direction to use |
Definition at line 346 of file camera.h.
References get_parameter_derivs().
TooN::Vector<num_parameters>& Camera::Harris::get_parameters | ( | ) | [inline] |
const int Camera::Harris::num_parameters = 5 [static] |