suppress debug out for soft cascade Octave
authormarina.kolpakova <marina.kolpakova@itseez.com>
Wed, 9 Jan 2013 13:56:32 +0000 (17:56 +0400)
committermarina.kolpakova <marina.kolpakova@itseez.com>
Fri, 1 Feb 2013 10:34:40 +0000 (14:34 +0400)
apps/sft/sft.cpp
modules/ml/include/opencv2/ml/ml.hpp
modules/ml/src/octave.cpp

index b170792..4432964 100644 (file)
@@ -130,7 +130,7 @@ int main(int argc, char** argv)
         cv::Octave boost(boundingBox, npositives, nnegatives, *it, shrinkage);
 
         std::string path = cfg.trainPath;
-        sft::ScaledDataset dataset(path, boost.logScale);
+        sft::ScaledDataset dataset(path, *it);
 
         if (boost.train(&dataset, &pool, cfg.weaks, cfg.treeDepth))
         {
index 5270d83..7a1d0ed 100644 (file)
@@ -2175,16 +2175,8 @@ public:
     virtual void setRejectThresholds(OutputArray thresholds);
     virtual void write( CvFileStorage* fs, string name) const;
     virtual void write( cv::FileStorage &fs, const FeaturePool* pool, InputArray thresholds) const;
-    virtual ~Octave();
-
-
     virtual float predict( InputArray _sample, InputArray _votes, bool raw_mode, bool return_sum ) const;
-
-
-
-
-    int logScale;
-
+    virtual ~Octave();
 protected:
     virtual bool train( const cv::Mat& trainData, const cv::Mat& responses, const cv::Mat& varIdx=cv::Mat(),
        const cv::Mat& sampleIdx=cv::Mat(), const cv::Mat& varType=cv::Mat(), const cv::Mat& missingDataMask=cv::Mat());
@@ -2197,6 +2189,7 @@ private:
     void traverse(const CvBoostTree* tree, cv::FileStorage& fs, int& nfeatures, int* used, const double* th) const;
     virtual void initial_weights(double (&p)[2]);
 
+    int logScale;
     cv::Rect boundingBox;
 
     int npositives;
index bf37ba9..b9e59d1 100644 (file)
@@ -43,7 +43,7 @@
 #include "precomp.hpp"
 #include <queue>
 
-#define WITH_DEBUG_OUT
+//#define WITH_DEBUG_OUT
 
 #if defined WITH_DEBUG_OUT
 # include <stdio.h>