Commit d0734db1c738d98f809d46e17436e6c86659eae9

Authored by Josh Klontz
1 parent b1e813dc

fixed warnings

openbr/plugins/quantize.cpp
@@ -183,8 +183,8 @@ private: @@ -183,8 +183,8 @@ private:
183 QList<int> clusterLabels = OpenCVUtils::matrixToVector<int>(labels); 183 QList<int> clusterLabels = OpenCVUtils::matrixToVector<int>(labels);
184 184
185 QHash< int, QList<int> > clusters; // QHash<clusterLabel, QList<templateLabel>> 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 for (int j=0; j<256; j++) 189 for (int j=0; j<256; j++)
190 for (int k=0; k<256; k++) 190 for (int k=0; k<256; k++)
openbr/plugins/sentence.cpp
@@ -77,7 +77,7 @@ class SentenceSimilarityDistance : public Distance @@ -77,7 +77,7 @@ class SentenceSimilarityDistance : public Distance
77 for (int i=0; i<aRows; i++) 77 for (int i=0; i<aRows; i++)
78 for (int j=0; j<bRows; j++) 78 for (int j=0; j<bRows; j++)
79 for (int k=0; k<aColumns; k++) 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 comparisons += aRows * bRows * aColumns; 81 comparisons += aRows * bRows * aColumns;
82 aWord = -2; 82 aWord = -2;
83 bWord = -1; 83 bWord = -1;