Skip to content
Snippets Groups Projects
Commit 506d0fa3 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: Mantis-1056: fix standard deviation

parent 861ed67a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment