Skip to content
Snippets Groups Projects
Commit dff8afb6 authored by Sergi Pujol's avatar Sergi Pujol
Browse files

corrected leak memory in AHTMatcher.h

parent 327bafa8
No related branches found
No related tags found
1 merge request!1Devel MG
......@@ -138,6 +138,8 @@ namespace falkolib {
/** @brief get best matching given point and an initial guest associations list*/
int getBestMatching(const std::vector<T>& v1, const std::vector<T>& v2, const std::vector<std::pair<int, int> >& init, std::vector<std::pair<int, int> >& match) {
for (auto &cell : matchesGrid)
cell.clear();
for (auto& asso : init) {
for (int it = 0; it < thetaSize; ++it) {
double theta = thetaRes * (it - thetaSize / 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment