From 233d59aefd4f351d8d9d4b14085fbdb0250e9cef Mon Sep 17 00:00:00 2001 From: DepthDeluxe Date: Mon, 11 Jul 2016 10:23:04 -0700 Subject: [PATCH] pre-chopping --- openbr/plugins/cuda/cublaspca.cpp | 488 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------ 1 file changed, 392 insertions(+), 96 deletions(-) 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