Commit d0734db1c738d98f809d46e17436e6c86659eae9

Authored by Josh Klontz
1 parent b1e813dc

fixed warnings

openbr/plugins/quantize.cpp
... ... @@ -183,8 +183,8 @@ private:
183 183 QList<int> clusterLabels = OpenCVUtils::matrixToVector<int>(labels);
184 184  
185 185 QHash< int, QList<int> > clusters; // QHash<clusterLabel, QList<templateLabel>>
186   - for (int i=0; i<clusterLabels.size(); i++)
187   - clusters[clusterLabels[i]].append(templateLabels[i]);
  186 + for (int j=0; j<clusterLabels.size(); j++)
  187 + clusters[clusterLabels[j]].append(templateLabels[j]);
188 188  
189 189 for (int j=0; j<256; j++)
190 190 for (int k=0; k<256; k++)
... ...
openbr/plugins/sentence.cpp
... ... @@ -77,7 +77,7 @@ class SentenceSimilarityDistance : public Distance
77 77 for (int i=0; i<aRows; i++)
78 78 for (int j=0; j<bRows; j++)
79 79 for (int k=0; k<aColumns; k++)
80   - distance += pow(aBuffer[i*aColumns+k] - bBuffer[j*bColumns+k], 2.f);
  80 + distance += pow(aData[i*aColumns+k] - bData[j*bColumns+k], 2.f);
81 81 comparisons += aRows * bRows * aColumns;
82 82 aWord = -2;
83 83 bWord = -1;
... ...