#include <CaptureEngine.h>
Public Member Functions | |
template<typename Function > | |
void | addMatchesCallback (const Function &f) |
this is a function that will be called back when the match has occurred. | |
template<typename Function > | |
void | addPriorUpdateCallback (const Function &f) |
PriorTracker (int max_fail_count=3) | |
Extrinsics | track (ImageAtom &query, ModelFitter &fitter, FitterResult *result=NULL) |
void | updatePrior (const ImageAtom &prior) |
Private Types | |
enum | { MATCHES_CALLBACK = 0, PRIOR_UPDATE_CB } |
Private Attributes | |
CallbackEngine | callbacks_ |
int | fail_count_ |
int | max_fail_count_ |
ImageAtom | prior_ |
Definition at line 21 of file CaptureEngine.h.
anonymous enum [private] |
Definition at line 49 of file CaptureEngine.h.
pano::PriorTracker::PriorTracker | ( | int | max_fail_count = 3 | ) |
Definition at line 32 of file CaptureEngine.cpp.
void pano::PriorTracker::addMatchesCallback | ( | const Function & | f | ) | [inline] |
this is a function that will be called back when the match has occurred.
The function should be able to be called the following way: f(pair); where pair is a const AtomPair&
Definition at line 36 of file CaptureEngine.h.
void pano::PriorTracker::addPriorUpdateCallback | ( | const Function & | f | ) | [inline] |
function should take as an argument a cv::Ptr<ImageAtom>
Definition at line 44 of file CaptureEngine.h.
Extrinsics pano::PriorTracker::track | ( | ImageAtom & | query, |
ModelFitter & | fitter, | ||
FitterResult * | result = NULL |
||
) |
Definition at line 37 of file CaptureEngine.cpp.
void pano::PriorTracker::updatePrior | ( | const ImageAtom & | prior | ) |
Definition at line 80 of file CaptureEngine.cpp.
CallbackEngine pano::PriorTracker::callbacks_ [private] |
Definition at line 56 of file CaptureEngine.h.
int pano::PriorTracker::fail_count_ [private] |
Definition at line 55 of file CaptureEngine.h.
int pano::PriorTracker::max_fail_count_ [private] |
Definition at line 54 of file CaptureEngine.h.
ImageAtom pano::PriorTracker::prior_ [private] |
Definition at line 53 of file CaptureEngine.h.