OpenCV  2.4.13.6
Open Source Computer Vision
cv::LevMarqSparse Class Reference

#include <contrib.hpp>

Public Member Functions

 LevMarqSparse ()
 
 LevMarqSparse (int npoints, int ncameras, int nPointParams, int nCameraParams, int nErrParams, Mat &visibility, Mat &P0, Mat &X, TermCriteria criteria, void(CV_CDECL *fjac)(int i, int j, Mat &point_params, Mat &cam_params, Mat &A, Mat &B, void *data), void(CV_CDECL *func)(int i, int j, Mat &point_params, Mat &cam_params, Mat &estim, void *data), void *data, BundleAdjustCallback cb, void *user_data)
 
virtual ~LevMarqSparse ()
 
virtual void run (int npoints, int ncameras, int nPointParams, int nCameraParams, int nErrParams, Mat &visibility, Mat &P0, Mat &X, TermCriteria criteria, void(CV_CDECL *fjac)(int i, int j, Mat &point_params, Mat &cam_params, Mat &A, Mat &B, void *data), void(CV_CDECL *func)(int i, int j, Mat &point_params, Mat &cam_params, Mat &estim, void *data), void *data)
 
virtual void clear ()
 
virtual void optimize (CvMat &_vis)
 
void ask_for_proj (CvMat &_vis, bool once=false)
 
void ask_for_projac (CvMat &_vis)
 

Static Public Member Functions

static void bundleAdjust (vector< Point3d > &points, const vector< vector< Point2d > > &imagePoints, const vector< vector< int > > &visibility, vector< Mat > &cameraMatrix, vector< Mat > &R, vector< Mat > &T, vector< Mat > &distCoeffs, const TermCriteria &criteria=TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON), BundleAdjustCallback cb=0, void *user_data=0)
 

Public Attributes

CvMaterr
 
double prevErrNorm
 
double errNorm
 
double lambda
 
CvTermCriteria criteria
 
int iters
 
CvMat ** U
 
CvMat ** V
 
CvMat ** inv_V_star
 
CvMat ** A
 
CvMat ** B
 
CvMat ** W
 
CvMatX
 
CvMathX
 
CvMatprevP
 
CvMatP
 
CvMatdeltaP
 
CvMat ** ea
 
CvMat ** eb
 
CvMat ** Yj
 
CvMatS
 
CvMatJtJ_diag
 
CvMatVis_index
 
int num_cams
 
int num_points
 
int num_err_param
 
int num_cam_param
 
int num_point_param
 
void(* fjac )(int i, int j, Mat &point_params, Mat &cam_params, Mat &A, Mat &B, void *data)
 
void(* func )(int i, int j, Mat &point_params, Mat &cam_params, Mat &estim, void *data)
 
voiddata
 
BundleAdjustCallback cb
 
voiduser_data
 

Constructor & Destructor Documentation

§ LevMarqSparse() [1/2]

cv::LevMarqSparse::LevMarqSparse ( )

§ LevMarqSparse() [2/2]

cv::LevMarqSparse::LevMarqSparse ( int  npoints,
int  ncameras,
int  nPointParams,
int  nCameraParams,
int  nErrParams,
Mat visibility,
Mat P0,
Mat X,
TermCriteria  criteria,
void(CV_CDECL *fjac)(int i, int j, Mat &point_params, Mat &cam_params, Mat &A, Mat &B, void *data ,
void(CV_CDECL *func)(int i, int j, Mat &point_params, Mat &cam_params, Mat &estim, void *data ,
void data,
BundleAdjustCallback  cb,
void user_data 
)

§ ~LevMarqSparse()

virtual cv::LevMarqSparse::~LevMarqSparse ( )
virtual

Member Function Documentation

§ ask_for_proj()

void cv::LevMarqSparse::ask_for_proj ( CvMat _vis,
bool  once = false 
)

§ ask_for_projac()

void cv::LevMarqSparse::ask_for_projac ( CvMat _vis)

§ bundleAdjust()

static void cv::LevMarqSparse::bundleAdjust ( vector< Point3d > &  points,
const vector< vector< Point2d > > &  imagePoints,
const vector< vector< int > > &  visibility,
vector< Mat > &  cameraMatrix,
vector< Mat > &  R,
vector< Mat > &  T,
vector< Mat > &  distCoeffs,
const TermCriteria criteria = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, DBL_EPSILON),
BundleAdjustCallback  cb = 0,
void user_data = 0 
)
static

§ clear()

virtual void cv::LevMarqSparse::clear ( )
virtual

§ optimize()

virtual void cv::LevMarqSparse::optimize ( CvMat _vis)
virtual

§ run()

virtual void cv::LevMarqSparse::run ( int  npoints,
int  ncameras,
int  nPointParams,
int  nCameraParams,
int  nErrParams,
Mat visibility,
Mat P0,
Mat X,
TermCriteria  criteria,
void(CV_CDECL *fjac)(int i, int j, Mat &point_params, Mat &cam_params, Mat &A, Mat &B, void *data ,
void(CV_CDECL *func)(int i, int j, Mat &point_params, Mat &cam_params, Mat &estim, void *data ,
void data 
)
virtual

Member Data Documentation

§ A

CvMat** cv::LevMarqSparse::A

§ B

CvMat** cv::LevMarqSparse::B

§ cb

BundleAdjustCallback cv::LevMarqSparse::cb

§ criteria

CvTermCriteria cv::LevMarqSparse::criteria

§ data

void* cv::LevMarqSparse::data

§ deltaP

CvMat* cv::LevMarqSparse::deltaP

§ ea

CvMat** cv::LevMarqSparse::ea

§ eb

CvMat** cv::LevMarqSparse::eb

§ err

CvMat* cv::LevMarqSparse::err

§ errNorm

double cv::LevMarqSparse::errNorm

§ fjac

void(* cv::LevMarqSparse::fjac) (int i, int j, Mat &point_params, Mat &cam_params, Mat &A, Mat &B, void *data)

§ func

void(* cv::LevMarqSparse::func) (int i, int j, Mat &point_params, Mat &cam_params, Mat &estim, void *data)

§ hX

CvMat* cv::LevMarqSparse::hX

§ inv_V_star

CvMat** cv::LevMarqSparse::inv_V_star

§ iters

int cv::LevMarqSparse::iters

§ JtJ_diag

CvMat* cv::LevMarqSparse::JtJ_diag

§ lambda

double cv::LevMarqSparse::lambda

§ num_cam_param

int cv::LevMarqSparse::num_cam_param

§ num_cams

int cv::LevMarqSparse::num_cams

§ num_err_param

int cv::LevMarqSparse::num_err_param

§ num_point_param

int cv::LevMarqSparse::num_point_param

§ num_points

int cv::LevMarqSparse::num_points

§ P

CvMat* cv::LevMarqSparse::P

§ prevErrNorm

double cv::LevMarqSparse::prevErrNorm

§ prevP

CvMat* cv::LevMarqSparse::prevP

§ S

CvMat* cv::LevMarqSparse::S

§ U

CvMat** cv::LevMarqSparse::U

§ user_data

void* cv::LevMarqSparse::user_data

§ V

CvMat** cv::LevMarqSparse::V

§ Vis_index

CvMat* cv::LevMarqSparse::Vis_index

§ W

CvMat** cv::LevMarqSparse::W

§ X

CvMat* cv::LevMarqSparse::X

§ Yj

CvMat** cv::LevMarqSparse::Yj

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