NAME

ransac_calibrate_camera_from_corrs - Using ransac, tries to guess the correct correspondences from the unordered

SYNOPSIS

#include "g/g_camera_matrix.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int ransac_calibrate_camera_from_corrs
(
	Matrix **camera,
	double *error,
	const Vector_vector *points2din,
	const Vector_vector *points3din,
	int numPoints,
	const Vector_vector *lines2din,
	const Vector_vector *lines3dain,
	const Vector_vector *lines3dbin,
	int numLines,
	int iterations,
	double tolerance
);

PARAMETERS

Matrix **camera
Location of the best resulting camera.
double *error
Will store the error of that camera.
const Vector_vector *points2din
The 2D Points
const Vector_vector *points3din
Corresponding 3D Points
int numPoints
The number of them to use.
const Vector_vector *lines2din
2D Lines
const Vector_vector *lines3dain
Corresponding 3D Lines as points.
int numLines
The number of them to use.
int iterations
The number of random guesses to try.

DESCRIPTION

correspondences. Given some number of point and line correspondences, (unordered), this function attempts to guess which correspondences belong to each other by randomly pairing them and checking for error.

RETURNS

NO_ERROR

RELATED

get_camera_matrix_from_point_and_line_correspondences

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Andrew Emmott (aemmott)

DOCUMENTER

Andrew Emmott (aemmott)

SEE ALSO

get_camera_matrix_from_point_and_line_correspondences , put_point_corrs , put_line_corrs