Commit 506d0fa3 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: Mantis-1056: fix standard deviation

parent 861ed67a
......@@ -140,7 +140,7 @@ private:
variance[itBand] += (size[0] * size[1] - 1) * (statsEstimator->GetCovariance())(itBand, itBand);
}
//Increment nbSamples
nbSamples += size[0] * size[1] * nbBands;
nbSamples += size[0] * size[1];
}
//Divide by the number of input images to get the mean over all layers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment