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
e1ab227b
Commit
e1ab227b
authored
Aug 30, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9515 from berak:fix_directx_samples
parents
91ef0b95
a0e26817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
d3dsample.hpp
samples/directx/d3dsample.hpp
+5
-5
No files found.
samples/directx/d3dsample.hpp
View file @
e1ab227b
...
...
@@ -168,7 +168,7 @@ static const char* keys =
{
"{c camera | true | use camera or not}"
"{f file | | movie file name }"
"{h help |
false
| print help info }"
"{h help |
| print help info }"
};
...
...
@@ -176,9 +176,9 @@ template <typename TApp>
int
d3d_app
(
int
argc
,
char
**
argv
,
std
::
string
&
title
)
{
cv
::
CommandLineParser
parser
(
argc
,
argv
,
keys
);
std
::
string
file
=
parser
.
get
<
std
::
string
>
(
"file"
);
bool
useCamera
=
parser
.
has
(
"camera"
);
string
file
=
parser
.
get
<
string
>
(
"file"
);
bool
showHelp
=
parser
.
get
<
bool
>
(
"help"
);
bool
showHelp
=
parser
.
has
(
"help"
);
if
(
showHelp
)
help
();
...
...
@@ -198,8 +198,8 @@ int d3d_app(int argc, char** argv, std::string& title)
return
-
1
;
}
int
width
=
(
int
)
cap
.
get
(
CAP_PROP_FRAME_WIDTH
);
int
height
=
(
int
)
cap
.
get
(
CAP_PROP_FRAME_HEIGHT
);
int
width
=
(
int
)
cap
.
get
(
cv
::
CAP_PROP_FRAME_WIDTH
);
int
height
=
(
int
)
cap
.
get
(
cv
::
CAP_PROP_FRAME_HEIGHT
);
std
::
string
wndname
=
title
;
...
...
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