Main Page   Modules   Compound List   File List   Compound Members   File Members  

homog34_fit.h File Reference

#include <gandalf/linalg/4vector.h>
#include <gandalf/linalg/3x4matrix.h>
#include <gandalf/linalg/mat_square.h>
#include <gandalf/linalg/symmat_eigen.h>

Go to the source code of this file.

Functions

Gan_SymMatEigenStructgan_homog34_init (Gan_SymMatEigenStruct *sme)
 Macro: Initialises the calculation of a 3x4 homography.

void gan_homog34_free (Gan_SymMatEigenStruct *sme)
 Macro: Frees the structure used to calculate a 3x4 homography.

Gan_Bool gan_homog34_increment_p (Gan_SymMatEigenStruct *sme, Gan_Vector4 *X, Gan_Vector3 *x, double scale, int *eq_count)
 Increments the calculation of a 3x4 homography for a point.

Gan_Bool gan_homog34_increment_le (Gan_SymMatEigenStruct *sme, Gan_Vector4 *X1, Gan_Vector4 *X2, Gan_Vector3 *l, double scale, int *eq_count)
 Increments the calculation of a 3x4 homography.

Gan_Bool gan_homog34_solve (Gan_SymMatEigenStruct *sme, int eq_count, Gan_Matrix34 *P)
 Solves for the 3x4 homography between 2D & 3D systems.

Gan_Bool gan_homog34_reset (Gan_SymMatEigenStruct *sme)
 Macro: Resets the structure used to calculate a 3x4 homography.


Detailed Description

Module: Fit a 3D --> 2D projective transformation to point/line data

Part of: Gandalf Library

Revision: Last edited: Author:

Copyright: (c) 2000 Imagineer Software Limited


Function Documentation

Gan_Bool gan_homog34_increment_le Gan_SymMatEigenStruct   sme,
Gan_Vector4   X1,
Gan_Vector4   X2,
Gan_Vector3   l,
double    scale,
int *    eq_count
 

Increments the calculation of a 3x4 homography.

Parameters:
sme A pointer to a symmetric eigensystem structure
X1 First point in the source 3D coordinate frame
X2 Second point in the source 3D coordinate frame
l Line in the destination 2D coordinate frame
scale A scaling on the outer product of X1/X2 and l
eq_count Pointer to the total number of equations or NULL
Increments the accumulated sum of outer products of vectors to be used to compute the homography between a projective 3D and a projective 2D coordinate systems, given a correspondence between the two points in the 3D coordinate system and a line in the 2D coordinate system.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
See also:
gan_homog34_increment_p().

Gan_Bool gan_homog34_increment_p Gan_SymMatEigenStruct   sme,
Gan_Vector4   X,
Gan_Vector3   x,
double    scale,
int *    eq_count
 

Increments the calculation of a 3x4 homography for a point.

Parameters:
sme A pointer to a symmetric eigensystem structure
X A point in the source coordinate frame for the homography
x A point in the destination coordinate frame
scale A scaling on the outer product of X & x
eq_count Pointer to the total number of equations or NULL
Increments the accumulated sum of outer products of vectors to be used to compute the homography between a projective 3D and a projective 2D coordinate systems, given a point correspondence between the coordinate systems.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
See also:
gan_homog34_increment_le().

Gan_Bool gan_homog34_solve Gan_SymMatEigenStruct   sme,
int    eq_count,
Gan_Matrix34   P
 

Solves for the 3x4 homography between 2D & 3D systems.

Parameters:
sme A pointer to a symmetric eigensystem structure
eq_count Total number of equations
P The homography matrix
Solves for the 3x4 homography between 2D & 3D systems, having accumulated point/line correspondences.

Returns:
GAN_TRUE on success, GAN_FALSE on failure.
See also:
gan_homog34_increment_p().


Generated on Mon Oct 13 16:14:41 2003 by doxygen1.3-rc1