Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a42cf25a
Commit
a42cf25a
authored
Dec 04, 2010
by
Gary Bradski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revamped
parent
4530eeba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
inpaint.cpp
samples/cpp/inpaint.cpp
+17
-6
No files found.
samples/cpp/inpaint.cpp
View file @
a42cf25a
...
...
@@ -6,6 +6,21 @@
using
namespace
cv
;
using
namespace
std
;
void
help
()
{
cout
<<
"
\n
Cool inpainging demo. Inpainting repairs damage to images by floodfilling the damage
\n
"
<<
"with surrounding image areas.
\n
"
"Using OpenCV version %s
\n
"
<<
CV_VERSION
<<
"
\n
"
"Usage:
\n
"
"./inpaint [image_name -- Default fruits.jpg]
\n
"
<<
endl
;
cout
<<
"Hot keys:
\n
"
"
\t
ESC - quit the program
\n
"
"
\t
r - restore the original image
\n
"
"
\t
i or SPACE - run inpainting algorithm
\n
"
"
\t\t
(before running it, paint something on the image)
\n
"
<<
endl
;
}
Mat
img
,
inpaintMask
;
Point
prevPt
(
-
1
,
-
1
);
...
...
@@ -34,15 +49,11 @@ int main( int argc, char** argv )
Mat
img0
=
imread
(
filename
,
-
1
);
if
(
img0
.
empty
())
{
cout
<<
"
Usage: inpaint <image_name>
\n
"
;
cout
<<
"
Couldn't open the image "
<<
filename
<<
". Usage: inpaint <image_name>
\n
"
<<
endl
;
return
0
;
}
cout
<<
"Hot keys:
\n
"
"
\t
ESC - quit the program
\n
"
"
\t
r - restore the original image
\n
"
"
\t
i or SPACE - run inpainting algorithm
\n
"
"
\t\t
(before running it, paint something on the image)
\n
"
;
help
();
namedWindow
(
"image"
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment