0

I want to detect only the vertical contours on an image like this:

image

The standard method with canny detector gives back a poor result. (i prefer openCV API, but any idea would be helpful)

András Kovács
  • 847
  • 1
  • 10
  • 29

2 Answers2

0

You can use hough line detection to detect vertical lines

user973743
  • 326
  • 1
  • 4
  • 19
  • The Hough works on detected edges, not on the image directly. http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/hough_lines/hough_lines.html – András Kovács Oct 16 '13 at 22:19
0

You should apply a horizontal filtering (e.g. Sobel – cvSobel() ), which will detect only the vertical edges.

Raluca
  • 280
  • 2
  • 9