Added needed header, changed macro name.

pull/1119/head
Daniel Angelov 12 years ago
parent 3350533f48
commit 22c8010b2d
  1. 3
      modules/imgproc/src/lsd.cpp
  2. 3
      samples/cpp/lsd_lines.cpp

@ -308,11 +308,8 @@ void LSD::flsd(std::vector<Vec4i>& lines,
// { // {
// region.data[reg[i].x + reg[i].y * width] = ls_count; // region.data[reg[i].x + reg[i].y * width] = ls_count;
// } // }
} }
} }
} }
void LSD::ll_angle(const double& threshold, const unsigned int& n_bins, std::vector<coorlist>& list) void LSD::ll_angle(const double& threshold, const unsigned int& n_bins, std::vector<coorlist>& list)

@ -2,6 +2,7 @@
#include <string> #include <string>
#include "opencv2/core/core.hpp" #include "opencv2/core/core.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp" #include "opencv2/highgui/highgui.hpp"
@ -18,7 +19,7 @@ int main(int argc, char** argv)
std::string in = argv[1]; std::string in = argv[1];
Mat image = imread(in, CV_LOAD_IMAGE_GRAYSCALE); Mat image = imread(in, IMREAD_GRAYSCALE);
// Create and LSD detector with std refinement. // Create and LSD detector with std refinement.
LSD lsd_std(LSD_REFINE_STD); LSD lsd_std(LSD_REFINE_STD);

Loading…
Cancel
Save