An example using the LineSegmentDetector
#include <iostream>
#include <string>
int main(int argc, char** argv)
{
std::string in;
cv::CommandLineParser parser(argc, argv,
"{@input|../data/building.jpg|input image}{help h||show help message}");
{
return 0;
}
in = parser.
get<
string>(
"@input");
#if 0
Canny(image, image, 50, 200, 3);
#endif
#if 1
#else
#endif
vector<Vec4f> lines_std;
std::cout << "It took " << duration_ms << " ms." << std::endl;
imshow(
"Standard refinement", drawnLines);
return 0;
}