Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4615

and having three waitKey(0) but the third one is not working

$
0
0
do { cout << endl; cout << "Enter Your Blend Key from -11 to 10" << endl; beta = 1.0; cout << endl; cin >> alpha; if ((double)alpha >= (-11.0) && (double)alpha <= 10.1) { addWeighted(img, alpha, img2, beta - alpha, 0, des); imshow("img", img); waitKey(0); imshow("ime1", img2); waitKey(0); imshow("Blended", des); waitKey(0); break; } else { cout << "Wrong Entry"; } } while (false);// , cout << " Try Again!!!" << endl); do { cout << "Enter Key" << endl; char key = cv::waitKey(0); cin >> key; if (key == 'Q' || key =='q' || key == 'E' || key =='e' ) { EXIT_SUCCESS; } } while (false);//, cout<<"Enter 'Q' or 'E' To Quit"<

Viewing all articles
Browse latest Browse all 4615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>