From e4350d0413dc26786072face6fd2e0a345eb6309 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 3 Feb 2016 01:40:08 +0100 Subject: stuff? dunno --- detect_road_borders.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'detect_road_borders.cpp') diff --git a/detect_road_borders.cpp b/detect_road_borders.cpp index d3ab3f7..7e4868d 100644 --- a/detect_road_borders.cpp +++ b/detect_road_borders.cpp @@ -23,6 +23,7 @@ #include #include #include +#include using namespace std; using namespace cv; @@ -580,7 +581,7 @@ int find_steering_point(Mat orig_img, Point origin_point, int** contour_map, Mat vector > contours; vector hierarchy; - findContours(img, contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_NONE, Point(0, 0)); + findContours(img, contours, hierarchy, RETR_TREE, CHAIN_APPROX_NONE, Point(0, 0)); int low_y, low_idx, high_y, first_nonbottom_idx; vector& contour = prepare_and_get_contour(img.cols, img.rows, contours, hierarchy, @@ -660,7 +661,7 @@ int main(int argc, char* argv[]) continue; } - cvtColor(frame, tmp, CV_RGB2GRAY); + cvtColor(frame, tmp, COLOR_RGB2GRAY); threshold(tmp, thres, 132, 255, THRESH_BINARY); dilate(thres,tmp,Mat()); erode(tmp,thres,Mat()); -- cgit v1.2.3