projects
/
opencv
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to 2.0.0 tree from current Fremantle build
[opencv]
/
samples
/
c
/
inpaint.cpp
diff --git
a/samples/c/inpaint.cpp
b/samples/c/inpaint.cpp
index
cbf13ff
..
75b30c8
100644
(file)
--- a/
samples/c/inpaint.cpp
+++ b/
samples/c/inpaint.cpp
@@
-43,7
+43,7
@@
int main( int argc, char** argv )
printf( "Hot keys: \n"
"\tESC - quit the program\n"
"\tr - restore the original image\n"
printf( "Hot keys: \n"
"\tESC - quit the program\n"
"\tr - restore the original image\n"
- "\ti or ENTER - run inpainting algorithm\n"
+ "\ti or SPACE - run inpainting algorithm\n"
"\t\t(before running it, paint something on the image)\n" );
cvNamedWindow( "image", 1 );
"\t\t(before running it, paint something on the image)\n" );
cvNamedWindow( "image", 1 );
@@
-55,7
+55,7
@@
int main( int argc, char** argv )
cvZero( inpaint_mask );
cvZero( inpainted );
cvShowImage( "image", img );
cvZero( inpaint_mask );
cvZero( inpainted );
cvShowImage( "image", img );
- cvShowImage( "watershed transform", inpainted );
+ cvShowImage( "inpainted image", inpainted );
cvSetMouseCallback( "image", on_mouse, 0 );
for(;;)
cvSetMouseCallback( "image", on_mouse, 0 );
for(;;)
@@
-72,7
+72,7
@@
int main( int argc, char** argv )
cvShowImage( "image", img );
}
cvShowImage( "image", img );
}
- if( (char)c == 'i' || (char)c == '\n' )
+ if( (char)c == 'i' || (char)c == ' ' )
{
cvNamedWindow( "inpainted image", 1 );
cvInpaint( img, inpaint_mask, inpainted, 3, CV_INPAINT_TELEA );
{
cvNamedWindow( "inpainted image", 1 );
cvInpaint( img, inpaint_mask, inpainted, 3, CV_INPAINT_TELEA );