Optimization of Visual Odometry System  1.2.0
CS133 Course Project
SnavelyReprojectionError Struct Reference

SnavelyReprojectionError The structure to record the parameters of error in the reprojection process.
More...

#include <BA_tools.hpp>

Public Member Functions

 SnavelyReprojectionError (double observed_x, double observed_y)
 Pass the parameters into the structure. More...
 
template<typename T >
bool operator() (const T *const camera, const T *const point, const T *const K, T *residuals) const
 

Static Public Member Functions

static ceres::CostFunction * Create (const double observed_x, const double observed_y)
 

Public Attributes

double observed_x
 
double observed_y
 

Detailed Description

SnavelyReprojectionError The structure to record the parameters of error in the reprojection process.

Definition at line 88 of file BA_tools.hpp.

Constructor & Destructor Documentation

◆ SnavelyReprojectionError()

SnavelyReprojectionError::SnavelyReprojectionError ( double  observed_x,
double  observed_y 
)
inline

Pass the parameters into the structure.

SnavelyReprojectionError() The constructor of the structure.

Parameters
[in]observed_xThe x-axis position of the observation point
[in]observed_yThe y-axis position of the observation point
Returns
NULL void output

Definition at line 96 of file BA_tools.hpp.

Here is the caller graph for this function:

Member Function Documentation

◆ Create()

static ceres::CostFunction* SnavelyReprojectionError::Create ( const double  observed_x,
const double  observed_y 
)
inlinestatic

Create() Creating a new autodiffcostfunction for the observed position.

Parameters
[in]observed_xThe x-axis position of the observation point
[in]observed_yThe y-axis position of the observation point
Returns
Return the cost function of specific position .

Definition at line 139 of file BA_tools.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

template<typename T >
bool SnavelyReprojectionError::operator() ( const T *const  camera,
const T *const  point,
const T *const  K,
T *  residuals 
) const
inline

operator() Creating a new autodiffcostfunction for the observed position.

Parameters
[in]cameraThe position of the camera.
[in]pointThe position of the predicted 3D point.
[in]KThe intrinsic parameter matrix.
[in]residualsThe error between real point and prediction.
Returns
true If the algorithm runs successfully.

Definition at line 107 of file BA_tools.hpp.

Member Data Documentation

◆ observed_x

double SnavelyReprojectionError::observed_x

Definition at line 144 of file BA_tools.hpp.

◆ observed_y

double SnavelyReprojectionError::observed_y

Definition at line 145 of file BA_tools.hpp.


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