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

BUG: Mantis-1266: precision issue

parent 32279379
No related branches found
No related tags found
2 merge requests!49Command line options for Monteverdi,!17Contrast enhancement corrections
......@@ -563,7 +563,7 @@ PersistentStreamingStatisticsVectorImageFilter<TInputImage, TPrecision>
{
for (unsigned int c = 0; c < threadSecondOrder.Cols(); ++c)
{
threadSecondOrder(r, c) += vectorValue[r] * vectorValue[c];
threadSecondOrder(r, c) += static_cast<PrecisionType>(vectorValue[r]) * static_cast<PrecisionType>(vectorValue[c]);
}
}
threadSecondOrderComponent += vectorValue.GetSquaredNorm();
......
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