Commit c153b121eb45cbe8ea858d7991409726c978b0e4

Authored by Josh Klontz
2 parents 625ba11b cc6e57c0

Merge branch 'master' of https://github.com/biometrics/openbr

CMakeLists.txt
... ... @@ -130,6 +130,7 @@ include(InstallDependencies)
130 130 install_compiler_libraries()
131 131 install_qt_libraries(QT_DEPENDENCIES)
132 132 install_qt_imageformats()
  133 +install_qt_misc()
133 134 install_opencv_libraries(OPENCV_DEPENDENCIES)
134 135  
135 136 # Package
... ...
openbr/plugins/neclatent1.cpp
1   -#include <openbr_plugin.h>
  1 +#include <openbr/openbr_plugin.h>
2 2 #include <LatentEFS.h>
3 3  
4 4 // necessary to allocate a large memory though the actual template size
... ...
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)
... ...