An example using the LineSegmentDetector
#include <iostream>
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
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( image.empty() )
{ return -1; }
#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;
}