Merge pull request #425 from asmaloney:vector_empty

pull/429/merge
Andrey Kamaev 12 years ago committed by OpenCV Buildbot
commit 6dc3b662f6
  1. 6
      modules/contrib/src/chamfermatching.cpp

@ -930,15 +930,13 @@ void ChamferMatcher::Template::show() const
void ChamferMatcher::Matching::addTemplateFromImage(Mat& templ, float scale)
{
Template* cmt = new Template(templ, scale);
if(templates.size() > 0)
templates.clear();
templates.clear();
templates.push_back(cmt);
cmt->show();
}
void ChamferMatcher::Matching::addTemplate(Template& template_){
if(templates.size() > 0)
templates.clear();
templates.clear();
templates.push_back(&template_);
}
/**

Loading…
Cancel
Save