Public Member Functions | Static Public Member Functions | Private Attributes
vpgl_bundle_adjust Class Reference

Static functions for bundle adjustment. More...

#include <vpgl_bundle_adjust.h>

List of all members.

Public Member Functions

 vpgl_bundle_adjust ()
 Constructor.
 ~vpgl_bundle_adjust ()
 Destructor.
void set_use_weights (bool use_weights)
void set_use_gradient (bool use_gradient)
double end_error () const
 Return the ending error.
double start_error () const
 Return the starting error.
int num_iterations () const
 Return the number of iterations.
const vnl_vector< double > & cam_params () const
 Return the raw camera parameters.
const vnl_vector< double > & point_params () const
 Return the raw world point parameters.
bool optimize (vcl_vector< vpgl_perspective_camera< double > > &cameras, vcl_vector< vgl_point_3d< double > > &world_points, const vcl_vector< vgl_point_2d< double > > &image_points, const vcl_vector< vcl_vector< bool > > &mask)
 Bundle Adjust.

Static Public Member Functions

static void write_vrml (const vcl_string &filename, vcl_vector< vpgl_perspective_camera< double > > &cameras, vcl_vector< vgl_point_3d< double > > &world_points)
 Write cameras and points to a file in VRML 2.0 for debugging.

Private Attributes

vpgl_bundle_adj_lsqrba_func_
 The bundle adjustment error function.
vnl_vector< double > a_
 The last camera parameters.
vnl_vector< double > b_
 The last point parameters.
bool use_weights_
bool use_gradient_
double start_error_
double end_error_
int num_iterations_

Detailed Description

Static functions for bundle adjustment.

Definition at line 146 of file vpgl_bundle_adjust.h.


Constructor & Destructor Documentation

vpgl_bundle_adjust::vpgl_bundle_adjust ( )

Constructor.

Definition at line 447 of file vpgl_bundle_adjust.cxx.

vpgl_bundle_adjust::~vpgl_bundle_adjust ( )

Destructor.

Definition at line 456 of file vpgl_bundle_adjust.cxx.


Member Function Documentation

const vnl_vector<double>& vpgl_bundle_adjust::cam_params ( ) const [inline]

Return the raw camera parameters.

Definition at line 165 of file vpgl_bundle_adjust.h.

double vpgl_bundle_adjust::end_error ( ) const [inline]

Return the ending error.

Definition at line 158 of file vpgl_bundle_adjust.h.

int vpgl_bundle_adjust::num_iterations ( ) const [inline]

Return the number of iterations.

Definition at line 162 of file vpgl_bundle_adjust.h.

bool vpgl_bundle_adjust::optimize ( vcl_vector< vpgl_perspective_camera< double > > &  cameras,
vcl_vector< vgl_point_3d< double > > &  world_points,
const vcl_vector< vgl_point_2d< double > > &  image_points,
const vcl_vector< vcl_vector< bool > > &  mask 
)

Bundle Adjust.

Definition at line 463 of file vpgl_bundle_adjust.cxx.

const vnl_vector<double>& vpgl_bundle_adjust::point_params ( ) const [inline]

Return the raw world point parameters.

Definition at line 167 of file vpgl_bundle_adjust.h.

void vpgl_bundle_adjust::set_use_gradient ( bool  use_gradient) [inline]

Definition at line 155 of file vpgl_bundle_adjust.h.

void vpgl_bundle_adjust::set_use_weights ( bool  use_weights) [inline]

Definition at line 154 of file vpgl_bundle_adjust.h.

double vpgl_bundle_adjust::start_error ( ) const [inline]

Return the starting error.

Definition at line 160 of file vpgl_bundle_adjust.h.

void vpgl_bundle_adjust::write_vrml ( const vcl_string &  filename,
vcl_vector< vpgl_perspective_camera< double > > &  cameras,
vcl_vector< vgl_point_3d< double > > &  world_points 
) [static]

Write cameras and points to a file in VRML 2.0 for debugging.

Definition at line 502 of file vpgl_bundle_adjust.cxx.


Member Data Documentation

The last camera parameters.

Definition at line 184 of file vpgl_bundle_adjust.h.

The last point parameters.

Definition at line 186 of file vpgl_bundle_adjust.h.

The bundle adjustment error function.

Definition at line 182 of file vpgl_bundle_adjust.h.

Definition at line 192 of file vpgl_bundle_adjust.h.

Definition at line 193 of file vpgl_bundle_adjust.h.

Definition at line 191 of file vpgl_bundle_adjust.h.

Definition at line 189 of file vpgl_bundle_adjust.h.

Definition at line 188 of file vpgl_bundle_adjust.h.


The documentation for this class was generated from the following files: