This commit is contained in:
ValeryTyumen
2015-08-01 20:24:23 +05:00
committed by Maksim Shabunin
parent 5cdf0e3e89
commit 297808e6b9
57 changed files with 950 additions and 1052 deletions

View File

@@ -70,14 +70,21 @@ static ostream& operator<<(ostream& out, const MyData& m){
}
int main(int ac, char** av)
{
if (ac != 2)
cv::CommandLineParser parser(ac, av,
"{@input||}{help h ||}"
);
if (parser.has("help"))
{
help(av);
return 0;
}
string filename = parser.get<string>("@input");
if (filename.empty())
{
help(av);
return 1;
}
string filename = av[1];
//write
{
FileStorage fs(filename, FileStorage::WRITE);