Commit c153b121eb45cbe8ea858d7991409726c978b0e4
Merge branch 'master' of https://github.com/biometrics/openbr
Showing
5 changed files
with
16 additions
and
4 deletions
CMakeLists.txt
openbr/plugins/neclatent1.cpp
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; | ... | ... |
share/openbr/cmake/InstallDependencies.cmake
| ... | ... | @@ -64,6 +64,17 @@ function(install_qt_imageformats) |
| 64 | 64 | endif() |
| 65 | 65 | endfunction() |
| 66 | 66 | |
| 67 | +# Qt Other | |
| 68 | +function(install_qt_misc) | |
| 69 | + if(MSVC) | |
| 70 | + if(${CMAKE_BUILD_TYPE} MATCHES Debug) | |
| 71 | + set(BR_INSTALL_DEPENDENCIES_SUFFIX "d") | |
| 72 | + endif() | |
| 73 | + install(FILES ${_qt5Core_install_prefix}/bin/libGLESv2${BR_INSTALL_DEPENDENCIES_SUFFIX}.dll DESTINATION bin) | |
| 74 | + # install(FILES ${_qt5Core_install_prefix}/bin/icuin49${BR_INSTALL_DEPENDENCIES_SUFFIX}.dll DESTINATION bin) | |
| 75 | + endif() | |
| 76 | +endfunction() | |
| 77 | + | |
| 67 | 78 | # Compiler libraries |
| 68 | 79 | function(install_compiler_libraries) |
| 69 | 80 | include(InstallRequiredSystemLibraries) | ... | ... |