Blender  V3.3
Static Public Member Functions | List of all members
libmv::homography::homography2D::SymmetricError Struct Reference

#include <homography_error.h>

Static Public Member Functions

static double Error (const Mat &H, const Vec &x1, const Vec &x2)
 

Detailed Description

Structure for estimating the symmetric error between a vector x2 and the transformed x1 such that Error = ||x2 - Psi(H * x1)||^2 + ||x1 - Psi(H^-1 * x2)||^2 where Psi is the function that transforms homogeneous to euclidean coords.

Note
It should be distributed as Chi-squared with k = 4.

Definition at line 130 of file homography_error.h.

Member Function Documentation

◆ Error()

static double libmv::homography::homography2D::SymmetricError::Error ( const Mat H,
const Vec x1,
const Vec x2 
)
inlinestatic

Computes the squared norm of the residuals between x2 and the transformed x1 such that Error = ||x2 - Psi(H * x1)||^2 + ||x1 - Psi(H^-1 * x2)||^2 where Psi is the function that transforms homogeneous to euclidean coords.

Parameters
[in]HThe 3x3 homography matrix. The estimated homography should approximatelly hold the condition y = H x.
[in]x1A 2D point (vector of size 2 or 3 (euclidean/homogeneous))
[in]x2A 2D point (vector of size 2 or 3 (euclidean/homogeneous))
Returns
The squared norm of the symmetric residuals errors

Definition at line 143 of file homography_error.h.

References libmv::homography::homography2D::AsymmetricError::Error(), H, and x2.


The documentation for this struct was generated from the following file: