Static Public Member Functions | List of all members
vpgl_triangulate_points Class Reference

#include <vpgl_triangulate_points.h>

Static Public Member Functions

static double triangulate (const std::vector< vgl_point_2d< double > > &points, const std::vector< vpgl_perspective_camera< double > > &cameras, vgl_point_3d< double > &point_3d)
 Calculates the best 3D point corresponding to a set of 2D camera points. More...
 

Detailed Description

Definition at line 21 of file vpgl_triangulate_points.h.

Member Function Documentation

◆ triangulate()

double vpgl_triangulate_points::triangulate ( const std::vector< vgl_point_2d< double > > &  points,
const std::vector< vpgl_perspective_camera< double > > &  cameras,
vgl_point_3d< double > &  point_3d 
)
static

Calculates the best 3D point corresponding to a set of 2D camera points.

Takes in a list of points and cameras, and finds the least-squared solution to the intersection of the rays generated by the points. Assumes that point i is viewed by camera i. The result is placed into point_3d. Returns the sum of squared errors.

Definition at line 23 of file vpgl_triangulate_points.cxx.


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