#include <vpgl_triangulate_points.h>
Static Public Member Functions | |
static double | triangulate (const vcl_vector< vgl_point_2d< double > > &points, const vcl_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. |
Definition at line 18 of file vpgl_triangulate_points.h.
double vpgl_triangulate_points::triangulate | ( | const vcl_vector< vgl_point_2d< double > > & | points, |
const vcl_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 20 of file vpgl_triangulate_points.cxx.