Feature #3957
This commit is contained in:

committed by
Maksim Shabunin

parent
5cdf0e3e89
commit
297808e6b9
@@ -13,15 +13,13 @@ using namespace cv;
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
std::string in;
|
||||
if (argc != 2)
|
||||
cv::CommandLineParser parser(argc, argv, "{@input|../data/building.jpg|input image}{help h||show help message}");
|
||||
if (parser.has("help"))
|
||||
{
|
||||
std::cout << "Usage: lsd_lines [input image]. Now loading ../data/building.jpg" << std::endl;
|
||||
in = "../data/building.jpg";
|
||||
}
|
||||
else
|
||||
{
|
||||
in = argv[1];
|
||||
parser.printMessage();
|
||||
return 0;
|
||||
}
|
||||
in = parser.get<string>("@input");
|
||||
|
||||
Mat image = imread(in, IMREAD_GRAYSCALE);
|
||||
|
||||
|
Reference in New Issue
Block a user