svo
Semi-Direct Visual Odometry
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Private Attributes
svo::SparseImgAlign Class Reference

Optimize the pose of the frame by minimizing the photometric error of feature patches. More...

#include <sparse_img_align.h>

List of all members.

Public Member Functions

 SparseImgAlign (int n_levels, int min_level, int n_iter, Method method, bool display, bool verbose)
size_t run (FramePtr ref_frame, FramePtr cur_frame)
Matrix< double, 6, 6 > getFisherInformation ()
 Return fisher information matrix, i.e.

Public Attributes

cv::Mat resimg_

Protected Member Functions

void precomputeReferencePatches ()
virtual double computeResiduals (const SE3 &model, bool linearize_system, bool compute_weight_scale=false)
virtual int solve ()
virtual void update (const ModelType &old_model, ModelType &new_model)
virtual void startIteration ()
virtual void finishIteration ()

Protected Attributes

FramePtr ref_frame_
 reference frame, has depth for gradient pixels.
FramePtr cur_frame_
 only the image is known!
int level_
 current pyramid level on which the optimization runs.
bool display_
 display residual image.
int max_level_
 coarsest pyramid level for the alignment.
int min_level_
 finest pyramid level for the alignment.
Matrix< double, 6, Dynamic,
ColMajor > 
jacobian_cache_
bool have_ref_patch_cache_
cv::Mat ref_patch_cache_
std::vector< bool > visible_fts_

Static Private Attributes

static const int patch_halfsize_ = 2
static const int patch_size_ = 2*patch_halfsize_
static const int patch_area_ = patch_size_*patch_size_

Detailed Description

Optimize the pose of the frame by minimizing the photometric error of feature patches.


Constructor & Destructor Documentation

svo::SparseImgAlign::SparseImgAlign ( int  n_levels,
int  min_level,
int  n_iter,
Method  method,
bool  display,
bool  verbose 
)

Member Function Documentation

virtual double svo::SparseImgAlign::computeResiduals ( const SE3 &  model,
bool  linearize_system,
bool  compute_weight_scale = false 
) [protected, virtual]
virtual void svo::SparseImgAlign::finishIteration ( ) [protected, virtual]

Return fisher information matrix, i.e.

the Hessian of the log-likelihood at the converged state.

size_t svo::SparseImgAlign::run ( FramePtr  ref_frame,
FramePtr  cur_frame 
)
virtual int svo::SparseImgAlign::solve ( ) [protected, virtual]
virtual void svo::SparseImgAlign::startIteration ( ) [protected, virtual]
virtual void svo::SparseImgAlign::update ( const ModelType &  old_model,
ModelType &  new_model 
) [protected, virtual]

Member Data Documentation

only the image is known!

display residual image.

Matrix<double, 6, Dynamic, ColMajor> svo::SparseImgAlign::jacobian_cache_ [protected]
int svo::SparseImgAlign::level_ [protected]

current pyramid level on which the optimization runs.

coarsest pyramid level for the alignment.

finest pyramid level for the alignment.

const int svo::SparseImgAlign::patch_halfsize_ = 2 [static, private]
const int svo::SparseImgAlign::patch_size_ = 2*patch_halfsize_ [static, private]

reference frame, has depth for gradient pixels.

std::vector<bool> svo::SparseImgAlign::visible_fts_ [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines