Ask Your Question

line detection ?

asked 2013-02-24 06:55:54 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

I've got an assignment as follow: "Using cvFilter functiom with the suitable kernels in order to scan a picture and then only hold lines that are +- 45 degree and +- 60 degree".

i hope someone can give me some clues, especially how to calculate the kernels ! ^~^

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-02-24 08:19:00 -0600

Guanta gravatar image

For line detection you need to get the edges of the image, i.e. probably the sobel-filter is your friend, for the detection-part you can use HoughLines. From these you can easily compute the angles and keep only those satisfying your constraints.

By the way: This Q&A forum is not intend to solve your programming tasks. Please also use its search-function first.

edit flag offensive delete link more

Question Tools


Asked: 2013-02-24 06:55:54 -0600

Seen: 4,185 times

Last updated: Feb 24 '13