add new version of CommandLineParser. add empty docs
This commit is contained in:
@@ -17,14 +17,14 @@ static void help()
|
||||
|
||||
const char* keys =
|
||||
{
|
||||
"{1| |lena.jpg|input image file}"
|
||||
"{@image|lena.jpg|input image file}"
|
||||
};
|
||||
|
||||
int main(int argc, const char ** argv)
|
||||
{
|
||||
help();
|
||||
CommandLineParser parser(argc, argv, keys);
|
||||
string filename = parser.get<string>("1");
|
||||
string filename = parser.get<string>(1);
|
||||
|
||||
Mat img = imread(filename.c_str(), CV_LOAD_IMAGE_GRAYSCALE);
|
||||
if( img.empty() )
|
||||
|
Reference in New Issue
Block a user