Bugfix in MSE calculation

This commit is contained in:
jfmcarreira committed 2016-12-20 16:00:46 +00:00
1 parent 8afb575c1f
commit f42be2c25b
1 file changed
+1 -1
+1 -1
View File
@@ -1322,7 +1322,7 @@ Double PlaYUVerFrame::getMSE( PlaYUVerFrame* Org, Int component )
{
return 0.0;
}
return ssd / ( Org->getWidth() * Org->getHeight() );
return ssd / Double( numberOfPixels );
}
Double PlaYUVerFrame::getPSNR( PlaYUVerFrame* Org, Int component )