From c8777da2d601f7db6f71de9f9965a22d541b8bd4 Mon Sep 17 00:00:00 2001 From: Oleh <43003542+vertextau@users.noreply.github.com> Date: Mon, 11 Feb 2019 10:45:16 +0200 Subject: [PATCH] Update video_input_psnr_ssim.markdown --- .../videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown b/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown index a07736f..8020521 100644 --- a/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown +++ b/doc/tutorials/videoio/video-input-psnr-ssim/video_input_psnr_ssim.markdown @@ -77,7 +77,7 @@ by the @ref cv::VideoCapture::read or the overloaded \>\> operator: @code{.cpp} Mat frameReference, frameUnderTest; captRefrnc >> frameReference; -captUndTst.open(frameUnderTest); +captUndTst.read(frameUnderTest); @endcode The upper read operations will leave empty the *Mat* objects if no frame could be acquired (either cause the video stream was closed or you got to the end of the video file). We can check this with a -- 2.7.4