From 17fbc6bbb02dee8e3b16e2a780e944ea04d807a3 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 2 Jun 2015 13:22:58 -0400 Subject: [PATCH] Added some verbose output --- openbr/plugins/representation/random.cpp | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/representation/random.cpp b/openbr/plugins/representation/random.cpp index 640a6ae..4d1ae74 100644 --- a/openbr/plugins/representation/random.cpp +++ b/openbr/plugins/representation/random.cpp @@ -31,6 +31,10 @@ class RandomRepresentation : public Representation representation->train(images, labels); const int nFeatures = representation->numFeatures(); + + if (Globals->verbose) + qDebug() << "Randomly sampling from" << nFeatures << "features."; + features = Common::RandSample(count,nFeatures,0,true); } -- libgit2 0.21.4