Created
February 19, 2019 03:55
-
-
Save ivder/af8fe9a092e2c5d7773c1ff06e8a6436 to your computer and use it in GitHub Desktop.
Test the video sharpness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(int argc, char** argv) | |
{ | |
VideoCapture capture("GOPR0632.MP4"); | |
Mat frame, result; | |
while (true) { | |
if (!capture.read(frame)) { | |
break; | |
} | |
cv::GaussianBlur(frame, result, cv::Size(0, 0), 3); | |
addWeighted(frame, 1.5, result, -0.5, 0, result); | |
namedWindow("Orginal"); | |
namedWindow("Result"); | |
imshow("Orginal", frame); | |
imshow("Result", result); | |
if (waitKey(25) >= 0) | |
break; | |
} | |
waitKey(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment