A class for the perspective camera model. More...
#include <vnl/vnl_fwd.h>#include <vgl/vgl_fwd.h>#include <vgl/vgl_point_3d.h>#include <vgl/vgl_homg_point_3d.h>#include <vgl/algo/vgl_rotation_3d.h>#include <vcl_iosfwd.h>#include "vpgl_proj_camera.h"#include "vpgl_calibration_matrix.h"#include <vsl/vsl_binary_io.h>Go to the source code of this file.
Classes | |
| class | vpgl_perspective_camera< T > |
| This class implements the perspective camera class as described in Hartley & Zisserman as a finite camera. More... | |
Functions | |
| template<class Type > | |
| vcl_ostream & | operator<< (vcl_ostream &s, vpgl_perspective_camera< Type > const &p) |
| Write vpgl_perspective_camera to stream. | |
| template<class Type > | |
| vcl_istream & | operator>> (vcl_istream &s, vpgl_perspective_camera< Type > &p) |
| Read vpgl_perspective_camera from stream. | |
| template<class T > | |
| bool | vpgl_perspective_decomposition (const vnl_matrix_fixed< T, 3, 4 > &camera_matrix, vpgl_perspective_camera< T > &p_camera) |
| Decompose camera into parameter blocks. | |
| template<class T > | |
| vpgl_perspective_camera< T > | vpgl_align_down (const vpgl_perspective_camera< T > &p0, const vpgl_perspective_camera< T > &p1) |
| Changes the coordinate system of camera p1 such that the same change would transform p0 to K[I|0]. | |
| template<class T > | |
| vpgl_perspective_camera< T > | vpgl_align_up (const vpgl_perspective_camera< T > &p0, const vpgl_perspective_camera< T > &p1) |
| Changes the coordinate system of camera p1 such that the same change would transform K[I|0] to p0. | |
| template<class T > | |
| vpgl_perspective_camera< T > | postmultiply (const vpgl_perspective_camera< T > &in_cam, const vgl_h_matrix_3d< T > &euclid_trans) |
| template<class T > | |
| void | vsl_b_write (vsl_b_ostream &os, const vpgl_perspective_camera< T > *p) |
| Binary save. | |
| template<class T > | |
| void | vsl_b_read (vsl_b_istream &is, vpgl_perspective_camera< T > *&p) |
| Binary read. | |
A class for the perspective camera model.
Modifications
May 08, 2005 Ricardo Fabbri Added binary I/O support
May 08, 2005 Ricardo Fabbri Added == operator
Feb 8, 2007 Thomas Pollard Added finite backproject method.
Mar 16, 2007 Matt Leotta Replaced vgl_h_matrix_3d with vgl_rotation_3d for rotation
Definition in file vpgl_perspective_camera.h.
| vcl_ostream& operator<< | ( | vcl_ostream & | s, |
| vpgl_perspective_camera< Type > const & | p | ||
| ) |
Write vpgl_perspective_camera to stream.
Definition at line 388 of file vpgl_perspective_camera.txx.
| vcl_istream& operator>> | ( | vcl_istream & | s, |
| vpgl_perspective_camera< Type > & | p | ||
| ) |
Read vpgl_perspective_camera from stream.
Definition at line 403 of file vpgl_perspective_camera.txx.
| vpgl_perspective_camera<T> postmultiply | ( | const vpgl_perspective_camera< T > & | in_cam, |
| const vgl_h_matrix_3d< T > & | euclid_trans | ||
| ) |
| vpgl_perspective_camera<T> vpgl_align_down | ( | const vpgl_perspective_camera< T > & | p0, |
| const vpgl_perspective_camera< T > & | p1 | ||
| ) |
Changes the coordinate system of camera p1 such that the same change would transform p0 to K[I|0].
Definition at line 314 of file vpgl_perspective_camera.txx.
| vpgl_perspective_camera<T> vpgl_align_up | ( | const vpgl_perspective_camera< T > & | p0, |
| const vpgl_perspective_camera< T > & | p1 | ||
| ) |
Changes the coordinate system of camera p1 such that the same change would transform K[I|0] to p0.
Definition at line 333 of file vpgl_perspective_camera.txx.
| bool vpgl_perspective_decomposition | ( | const vnl_matrix_fixed< T, 3, 4 > & | camera_matrix, |
| vpgl_perspective_camera< T > & | p_camera | ||
| ) |
Decompose camera into parameter blocks.
Attempts to decompose a 3x4 camera matrix into the parameter blocks that describe a perspective camera, but will only work if the supplied matrix has a left 3x3 submatrix with rank 3.
Definition at line 244 of file vpgl_perspective_camera.txx.
| void vsl_b_read | ( | vsl_b_istream & | is, |
| vpgl_perspective_camera< T > *& | p | ||
| ) |
Binary read.
Definition at line 485 of file vpgl_perspective_camera.txx.
| void vsl_b_write | ( | vsl_b_ostream & | os, |
| const vpgl_perspective_camera< T > * | p | ||
| ) |
Binary save.
Definition at line 471 of file vpgl_perspective_camera.txx.
1.7.5.1