Added needed header, changed macro name.
This commit is contained in:
parent
3350533f48
commit
22c8010b2d
@ -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…
x
Reference in New Issue
Block a user