Browse Source

bug fix in eohmap computation (closely connected to HOG feature computation)

Johannes Ruehle 12 years ago
parent
commit
1c62d3f67e
1 changed files with 3 additions and 2 deletions
  1. 3 2
      features/fpfeatures/FIGradients.cpp

+ 3 - 2
features/fpfeatures/FIGradients.cpp

@@ -72,8 +72,9 @@ void FIGradients::buildEOHMap ( CachedExample *ce,
   eohintimg.reInit ( xsize_s, ysize_s, numBins );
   for ( uint i = 0 ; i < ( uint ) numBins ; i++ )
   {
-    ImageT<double> tmp = eohimg[i];
-    GenericImageTools::calcIntegralImage ( tmp, tmp, xsize_s, ysize_s );
+    ImageT<double> tmpEohImg         = eohimg[i];
+    ImageT<double> tmpEohIntegralImg = eohintimg[i];
+    GenericImageTools::calcIntegralImage ( tmpEohIntegralImg, tmpEohImg, xsize_s, ysize_s );
   }
 
 }