Commit 142ba690 authored by Victor Poughon's avatar Victor Poughon

REFAC: update examples argv parsing

parent 7561af26
......@@ -46,6 +46,12 @@
int main(int argc, char * argv[])
{
if (argc != 3)
{
std::cerr << "Usage: ./LineSegmentDetectorExample input output\n";
return EXIT_FAILURE;
}
const char* infname = argv[1];
const char* outfname = argv[2];
......
......@@ -52,11 +52,17 @@
int main(int argc, char * argv[])
{
if (argc != 6)
{
std::cerr << "Usage: ./RightAngleDetectionExample input lsdOutput rightAngleOutput angleThreshold distanceThreshold\n";
return EXIT_FAILURE;
}
const char* infname = argv[1];
const char* lsdOutputFilename = argv[2];
const char* rightAngleOutputFilename = argv[3];
double angleThreshold = atof(argv[5]);
double distanceThreshold = atof(argv[6]);
double angleThreshold = atof(argv[4]);
double distanceThreshold = atof(argv[5]);
const unsigned int Dimension = 2;
typedef unsigned char PixelType;
......
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