diff --git a/openbr/plugins/cuda/cublaspca.cpp b/openbr/plugins/cuda/cublaspca.cpp index 98121a2..6c1a3e6 100644 --- a/openbr/plugins/cuda/cublaspca.cpp +++ b/openbr/plugins/cuda/cublaspca.cpp @@ -32,6 +32,7 @@ using namespace cv; #include #include +#include #include "cudadefines.hpp" namespace br @@ -58,7 +59,7 @@ protected: BR_PROPERTY(int, drop, 0) BR_PROPERTY(bool, whiten, false) - Eigen::VectorXf mean, eVals; + Eigen::VectorXf mean; Eigen::MatrixXf eVecs; int originalRows; @@ -94,41 +95,40 @@ private: void train(const TemplateList &cudaTrainingSet) { - // copy the data back from the graphics card so the training can be done on the CPU - const int instances = cudaTrainingSet.size(); // get the number of training set instances - QList