Defines | Functions
core/vpgl/vpgl_essential_matrix.txx File Reference
#include "vpgl_essential_matrix.h"
#include <vnl/vnl_fwd.h>
#include <vnl/vnl_vector_fixed.h>
#include <vnl/vnl_matrix_fixed.h>
#include <vnl/vnl_det.h>
#include <vgl/vgl_point_2d.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"

Go to the source code of this file.

Defines

#define vpgl_essential_matrix_txx_
#define vpgl_ESSENTIAL_MATRIX_INSTANTIATE(T)

Functions

template<class T >
bool extract_left_camera (const vpgl_essential_matrix< T > &E, const vgl_point_2d< T > &left_corr, const vgl_point_2d< T > &right_corr, vpgl_perspective_camera< T > &p_left, const T translation_mag)
 Left camera extractor. Normalized correspondence pair is needed to determine which of four solutions should be used, i.e. focal plane coordinates.
template<class T >
vcl_ostream & operator<< (vcl_ostream &s, vpgl_essential_matrix< T > const &p)
 vpgl_essential_matrix stream I/O.
template<class T >
vcl_istream & operator>> (vcl_istream &s, vpgl_essential_matrix< T > &p)
 Read vpgl_perspective_camera from stream.

Detailed Description

Definition in file vpgl_essential_matrix.txx.


Define Documentation

#define vpgl_ESSENTIAL_MATRIX_INSTANTIATE (   T)
Value:
template class vpgl_essential_matrix<T >; \
template bool extract_left_camera(const vpgl_essential_matrix<T >& E, \
                                  const vgl_point_2d<T >& left_corr, \
                                  const vgl_point_2d<T >& right_corr, \
                                  vpgl_perspective_camera<T >& p_left, \
                                  const T translation_mag); \
template vcl_ostream& operator<<(vcl_ostream&, const vpgl_essential_matrix<T >&); \
template vcl_istream& operator>>(vcl_istream&, vpgl_essential_matrix<T >&)

Definition at line 168 of file vpgl_essential_matrix.txx.

#define vpgl_essential_matrix_txx_

Definition at line 3 of file vpgl_essential_matrix.txx.


Function Documentation

template<class T >
bool extract_left_camera ( const vpgl_essential_matrix< T > &  E,
const vgl_point_2d< T > &  left_corr,
const vgl_point_2d< T > &  right_corr,
vpgl_perspective_camera< T > &  p_left,
const T  translation_mag = (T) 1 
)

Left camera extractor. Normalized correspondence pair is needed to determine which of four solutions should be used, i.e. focal plane coordinates.

The translation part of the camera is normalized to the indicated magnitude.

Definition at line 87 of file vpgl_essential_matrix.txx.

template<class T >
vcl_ostream& operator<< ( vcl_ostream &  s,
vpgl_essential_matrix< T > const &  p 
)

vpgl_essential_matrix stream I/O.

Definition at line 150 of file vpgl_essential_matrix.txx.

template<class T >
vcl_istream& operator>> ( vcl_istream &  s,
vpgl_essential_matrix< T > &  p 
)

Read vpgl_perspective_camera from stream.

Definition at line 158 of file vpgl_essential_matrix.txx.