mirror of https://github.com/opencv/opencv.git
parent
b33a2f24fa
commit
31bec45998
1 changed files with 38 additions and 0 deletions
@ -0,0 +1,38 @@ |
||||
/*
|
||||
* ModelRegistration.cpp |
||||
* |
||||
* Created on: Apr 18, 2014 |
||||
* Author: edgar |
||||
*/ |
||||
|
||||
#include "ModelRegistration.h" |
||||
|
||||
ModelRegistration::ModelRegistration() |
||||
{ |
||||
n_registrations_ = 0; |
||||
max_registrations_ = 0; |
||||
} |
||||
|
||||
ModelRegistration::~ModelRegistration() |
||||
{ |
||||
// TODO Auto-generated destructor stub
|
||||
} |
||||
|
||||
void ModelRegistration::registerPoint(const cv::Point2f &point2d, const cv::Point3f &point3d) |
||||
{ |
||||
// add correspondence at the end of the vector
|
||||
list_points2d_.push_back(point2d); |
||||
list_points3d_.push_back(point3d); |
||||
n_registrations_++; |
||||
} |
||||
|
||||
void ModelRegistration::reset() |
||||
{ |
||||
n_registrations_ = 0; |
||||
max_registrations_ = 0; |
||||
list_points2d_.clear(); |
||||
list_points3d_.clear(); |
||||
} |
||||
|
||||
|
||||
|
Loading…
Reference in new issue