Commit 31d11378 authored by Alexander Alekhin's avatar Alexander Alekhin

text: minor refactoring in C++ sample

parent 1dc84e81
...@@ -32,7 +32,6 @@ int main(int argc, const char * argv[]) ...@@ -32,7 +32,6 @@ int main(int argc, const char * argv[])
if (argc < 2) show_help_and_exit(argv[0]); if (argc < 2) show_help_and_exit(argv[0]);
namedWindow("grouping",WINDOW_NORMAL);
Mat src = imread(argv[1]); Mat src = imread(argv[1]);
// Extract channels to be processed individually // Extract channels to be processed individually
...@@ -70,8 +69,8 @@ int main(int argc, const char * argv[]) ...@@ -70,8 +69,8 @@ int main(int argc, const char * argv[])
imshow("grouping",src); imshow("grouping",src);
cout << "Done!" << endl << endl; cout << "Done!" << endl << endl;
cout << "Press 'e' to show the extracted Extremal Regions, any other key to exit." << endl << endl; cout << "Press 'space' to show the extracted Extremal Regions, any other key to exit." << endl << endl;
if( waitKey (-1) == 101) if ((waitKey()&0xff) == ' ')
er_show(channels,regions); er_show(channels,regions);
// memory clean-up // memory clean-up
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment