Fix PSNR formula.
This commit is contained in:
parent
bfb4c39a3d
commit
cc5bb56f3f
@ -85,7 +85,7 @@ struct Error
|
|||||||
mabse /= samples;
|
mabse /= samples;
|
||||||
mse /= samples;
|
mse /= samples;
|
||||||
rmse = sqrt(mse);
|
rmse = sqrt(mse);
|
||||||
psnr = (rmse == 0) ? 999.0f : 20.0f * log10(32767.0 / rmse);
|
psnr = (rmse == 0) ? 999.0f : 20.0f * log10(255.0 / rmse);
|
||||||
}
|
}
|
||||||
|
|
||||||
void print()
|
void print()
|
||||||
|
Loading…
Reference in New Issue
Block a user