
// 190: Thresh_low, 200: Thresh_high, 3: kernel_size
Canny(image, canny, 190, 200, 3);Gaussian Filter 로 이미지 smooth
sobel edge mask 로 gradient magnitude 와 angle images 를 계산
// x, y, kernel size = 1, 0, 3 / 0, 1, 3
Sobel(blur, grad_x, CV16S, 1, 0, 3);
Sobel(blur, grad_y, CV16S, 0, 1, 3);
Non-Maxima Suppression을 통해 불필요 픽셀 제거 및 가장 강한 엣지만 남김
Double Thresholding
// canny, output, 해상도, theta, thresh, 최소 각, 최대 각)
HoughLines(edge, lines, 1, CV_PI/180, 150, 0, CV_PI);// canny, output, 해상도, theta, thresh, 최소라인길이, 최대라인길이
HoughLinesP(edge, lines, 1, CV_PI/180, 50, 10, 300);