CVD 0.8
|
A Camera with zero skew and Harris distortion. More...
#include <camera.h>
Public Member Functions | |
void | load (std::istream &is) |
void | save (std::ostream &os) const |
TooN::Vector< 2 > | linearproject (const TooN::Vector< 2 > &camframe, TooN::DefaultPrecision scale=1) const |
TooN::Vector< 2 > | project (const TooN::Vector< 2 > &camframe) const |
TooN::Vector< 2 > | unproject (const TooN::Vector< 2 > &imframe) const |
TooN::Matrix< 2, 2 > | get_derivative () const |
TooN::Matrix< 2, 2 > | get_derivative (const TooN::Vector< 2 > &pt) const |
TooN::Matrix< num_parameters, 2 > | get_parameter_derivs () const |
TooN::Matrix< num_parameters, 2 > | get_parameter_derivs_at (const TooN::Vector< 2 > &pt) const |
TooN::Vector< num_parameters > | get_parameter_derivs (const TooN::Vector< 2 > &direction) const |
TooN::Vector< num_parameters > & | get_parameters () |
const TooN::Vector < num_parameters > & | get_parameters () const |
Static Public Attributes | |
static const int | num_parameters = 5 |
A Camera with zero skew and Harris distortion.
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.
void Camera::Harris::load | ( | std::istream & | is | ) | [inline] |
void Camera::Harris::save | ( | std::ostream & | os | ) | const [inline] |
TooN::Matrix<2,2> Camera::Harris::get_derivative | ( | const TooN::Vector< 2 > & | pt | ) | const [inline] |
Evaluate the derivative of image frame wrt camera frame at an arbitrary point pt
.
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 362 of file camera.h.
References get_parameter_derivs().
TooN::Vector<num_parameters>& Camera::Harris::get_parameters | ( | ) | [inline] |