Fixes of some memory leaks

This commit is contained in:
Piotr Miecielica
2013-11-19 17:35:27 +01:00
parent e69d2c1bb1
commit 923698d700
6 changed files with 18 additions and 5 deletions

View File

@@ -476,12 +476,19 @@ public:
chamfer_ = new Matching(true);
}
~ChamferMatcher()
{
delete chamfer_;
}
void showMatch(Mat& img, int index = 0);
void showMatch(Mat& img, Match match_);
const Matches& matching(Template&, Mat&);
private:
ChamferMatcher(const ChamferMatcher&);
ChamferMatcher& operator=(const ChamferMatcher&);
void addMatch(float cost, Point offset, const Template* tpl);