X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=samples%2Fc%2Fwatershed.cpp;h=dfc5c3cca1512731e168a129d21d79bfea443fb2;hp=2241a1ad70b8642278a5eed282b8408a20596ed2;hb=HEAD;hpb=454138ff8a20f6edb9b65a910101403d8b520643 diff --git a/samples/c/watershed.cpp b/samples/c/watershed.cpp index 2241a1a..dfc5c3c 100644 --- a/samples/c/watershed.cpp +++ b/samples/c/watershed.cpp @@ -47,7 +47,7 @@ int main( int argc, char** argv ) printf( "Hot keys: \n" "\tESC - quit the program\n" "\tr - restore the original image\n" - "\tw or ENTER - run watershed algorithm\n" + "\tw or SPACE - run watershed algorithm\n" "\t\t(before running it, roughly mark the areas on the image)\n" "\t (before that, roughly outline several markers on the image)\n" ); @@ -82,7 +82,7 @@ int main( int argc, char** argv ) cvShowImage( "image", img ); } - if( (char)c == 'w' || (char)c == '\n' ) + if( (char)c == 'w' || (char)c == ' ' ) { CvMemStorage* storage = cvCreateMemStorage(0); CvSeq* contours = 0;