]> Creatis software - clitk.git/commitdiff
Modified --dvhistogram option.
authorAgata Krason <agatakrason@gmail.com>
Fri, 13 Jun 2014 13:32:18 +0000 (15:32 +0200)
committerAgata Krason <agatakrason@gmail.com>
Fri, 13 Jun 2014 13:32:18 +0000 (15:32 +0200)
tools/clitkImageStatisticsGenericFilter.txx

index 8bc99d0e423831da2245968635cd766c64c2aab1..5d462407437554b29aa753d6fffce21c2f5d5c39 100644 (file)
@@ -293,7 +293,7 @@ namespace clitk
             for( int i =0; i <m_ArgsInfo.bins_arg; i++)
             {
               double popCumulativeVolume = 0;
-              for(int j=0; j<=i; j++)
+              for(int j=0; j<i; j++)
               {
                  popCumulativeVolume+=(dvhistogram->GetFrequency(j));
               }
@@ -327,7 +327,7 @@ namespace clitk
             for( int i =0; i <m_ArgsInfo.bins_arg; i++)
             {
                double popCumulativeVolume = 0;
-               for(int j=0; j<=i; j++)
+               for(int j=0; j<i; j++)
                {
                  popCumulativeVolume+=(dvhistogram->GetFrequency(j));
                }