Skip to content

Commit bdcb81e

Browse files
author
Steven Puttemans
committed
fix issue 9359
1 parent 6b2510d commit bdcb81e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Then the PSNR is expressed as:
133133

134134
\f[PSNR = 10 \cdot \log_{10} \left( \frac{MAX_I^2}{MSE} \right)\f]
135135

136-
Here the \f$MAX_I^2\f$ is the maximum valid value for a pixel. In case of the simple single byte image
136+
Here the \f$MAX_I\f$ is the maximum valid value for a pixel. In case of the simple single byte image
137137
per pixel per channel this is 255. When two images are the same the MSE will give zero, resulting in
138138
an invalid divide by zero operation in the PSNR formula. In this case the PSNR is undefined and as
139139
we'll need to handle this case separately. The transition to a logarithmic scale is made because the

0 commit comments

Comments
 (0)