update samples: waitKey() usage
Original commit is a5f19f7dd6ae5bc93f73e0417a9e0bfd34c01672
This commit is contained in:
committed by
Alexander Alekhin
parent
4e7b521438
commit
6d34d6b47e
@@ -85,9 +85,9 @@ Explanation
|
||||
while( true )
|
||||
{
|
||||
/// Each 1 sec. Press ESC to exit the program
|
||||
int c = waitKey( 1000 );
|
||||
char c = (char)waitKey( 1000 );
|
||||
|
||||
if( (char)c == 27 )
|
||||
if( c == 27 )
|
||||
{ break; }
|
||||
|
||||
/// Update map_x & map_y. Then apply remap
|
||||
|
||||
@@ -93,6 +93,7 @@ Let's check the general structure of the program:
|
||||
|
||||
- Perform an infinite loop waiting for user input.
|
||||
@snippet cpp/tutorial_code/ImgProc/Pyramids.cpp infinite_loop
|
||||
|
||||
Our program exits if the user presses *ESC*. Besides, it has two options:
|
||||
|
||||
- **Perform upsampling (after pressing 'u')**
|
||||
|
||||
Reference in New Issue
Block a user