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
75b76554
Commit
75b76554
authored
Sep 14, 2013
by
siddharth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errors in samples/cpp removed
parent
01e1ccfa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
cloning_gui.cpp
samples/cpp/cloning_gui.cpp
+5
-1
create_mask.cpp
samples/cpp/create_mask.cpp
+9
-0
npr_demo.cpp
samples/cpp/npr_demo.cpp
+4
-7
No files found.
samples/cpp/cloning_gui.cpp
View file @
75b76554
...
...
@@ -69,6 +69,10 @@ float red, green, blue;
double
low_t
,
high_t
;
void
source
(
int
,
int
,
int
,
int
,
void
*
);
void
destination
(
int
,
int
,
int
,
int
,
void
*
);
void
checkfile
(
char
*
);
void
source
(
int
event
,
int
x
,
int
y
,
int
,
void
*
)
{
...
...
@@ -304,7 +308,7 @@ void checkfile(char *file)
}
}
int
main
(
int
argc
,
char
**
argv
)
int
main
()
{
cout
<<
endl
;
cout
<<
"Cloning Module"
<<
endl
;
...
...
samples/cpp/create_mask.cpp
View file @
75b76554
...
...
@@ -36,6 +36,8 @@ int minx,miny,maxx,maxy,lenx,leny;
int
channel
;
void
mouseHandler
(
int
,
int
,
int
,
int
,
void
*
);
void
mouseHandler
(
int
event
,
int
x
,
int
y
,
int
,
void
*
)
{
...
...
@@ -123,6 +125,13 @@ void mouseHandler(int event, int x, int y, int, void*)
int
main
(
int
argc
,
char
**
argv
)
{
if
(
argc
!=
2
)
{
cout
<<
"usage: "
<<
argv
[
0
]
<<
" <input_image>"
<<
endl
;
exit
(
1
);
}
Mat
src
=
imread
(
argv
[
1
]);
minx
=
INT_MAX
;
miny
=
INT_MAX
;
maxx
=
INT_MIN
;
maxy
=
INT_MIN
;
...
...
samples/cpp/npr_demo.cpp
View file @
75b76554
...
...
@@ -28,19 +28,16 @@ using namespace cv;
int
main
(
int
argc
,
char
*
argv
[])
{
int
num
,
type
;
int
flag
=
0
;
Mat
I
=
imread
(
argv
[
1
]);
if
(
argc
<
2
)
{
cout
<<
"usage: "
<<
argv
[
0
]
<<
" <Input image> "
<<
endl
;
exit
(
0
);
}
int
num
,
type
;
Mat
I
=
imread
(
argv
[
1
]);
if
(
!
I
.
data
)
{
cout
<<
"Image not found"
<<
endl
;
...
...
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