Commit a0e26817 authored by berak's avatar berak

fix missing std:: in d3dsample

parent ef2b7304
...@@ -168,7 +168,7 @@ static const char* keys = ...@@ -168,7 +168,7 @@ static const char* keys =
{ {
"{c camera | true | use camera or not}" "{c camera | true | use camera or not}"
"{f file | | movie file name }" "{f file | | movie file name }"
"{h help | false | print help info }" "{h help | | print help info }"
}; };
...@@ -176,9 +176,9 @@ template <typename TApp> ...@@ -176,9 +176,9 @@ template <typename TApp>
int d3d_app(int argc, char** argv, std::string& title) int d3d_app(int argc, char** argv, std::string& title)
{ {
cv::CommandLineParser parser(argc, argv, keys); cv::CommandLineParser parser(argc, argv, keys);
std::string file = parser.get<std::string>("file");
bool useCamera = parser.has("camera"); bool useCamera = parser.has("camera");
string file = parser.get<string>("file"); bool showHelp = parser.has("help");
bool showHelp = parser.get<bool>("help");
if (showHelp) if (showHelp)
help(); help();
...@@ -198,8 +198,8 @@ int d3d_app(int argc, char** argv, std::string& title) ...@@ -198,8 +198,8 @@ int d3d_app(int argc, char** argv, std::string& title)
return -1; return -1;
} }
int width = (int)cap.get(CAP_PROP_FRAME_WIDTH); int width = (int)cap.get(cv::CAP_PROP_FRAME_WIDTH);
int height = (int)cap.get(CAP_PROP_FRAME_HEIGHT); int height = (int)cap.get(cv::CAP_PROP_FRAME_HEIGHT);
std::string wndname = title; std::string wndname = title;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment