Bjoern Froehlich 13 роки тому
батько
коміт
80f72481da
2 змінених файлів з 11 додано та 2 видалено
  1. 11 1
      semseg/SemSegContextTree.cpp
  2. 0 1
      semseg/operations/Operations.h

+ 11 - 1
semseg/SemSegContextTree.cpp

@@ -290,7 +290,6 @@ double SemSegContextTree::getBestSplit ( std::vector<NICE::MultiChannelImageT<do
     }
     else if ( ft == 1 )
     {
-
       int opssize = ( int ) ops.size();
       //opssize = 0;
       int o = ( int ) ( ( double ) rand() / ( double ) RAND_MAX * ( ( ( double ) cops.size() ) + ( double ) opssize ) );
@@ -846,6 +845,17 @@ void SemSegContextTree::train ( const MultiDataset *md )
           Operation *splitfeat = NULL;
           double splitval;
           double bestig = getBestSplit ( allfeats, lastfeats, integralImgs, labels, i, splitfeat, splitval, tree );
+          
+          for(int ii = 0; ii < lastfeats.size(); ii++)
+          {
+            for(int c = 0; c < lastfeats[ii].channels(); c++)
+            {
+              short unsigned int minv, maxv;
+              lastfeats[ii].statistics(minv, maxv, c);
+              cout << "min: " << minv << " max: " << maxv << endl;
+            } 
+          }
+          
 #if 0
           timer.stop();
           double tl = timer.getLast();

+ 0 - 1
semseg/operations/Operations.h

@@ -184,7 +184,6 @@ class MCImageAccess: public ValueAccess
 
 class ClassificationResultAccess: public ValueAccess
 {
-
   public:
     /**
      * @brief extract value on specific position x,y and channel;