Ask Your Question

Clear path detection using edge detection

asked 2013-04-06 05:11:57 -0500

Madz gravatar image

I want to create an application where a user can detect an unobstructed path using an Android mobile phone. I used a Gaussian filter for smoothing and then used canny edge detection to detect edges.
I thought if I could find the concentration of edges in the video I can direct the user towards an area with a low concentration of edges, hence a clear path.
Is there a way to find the concentration of the edges? I'm new to image processing so any help would be appreciated.
Thank you

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-04-06 05:44:12 -0500

There is not standard functionality in OpenCV that provides exactly what you want. However, edges are basically binary maps (or can be represented as such) making it possible for you to detect the amount of white pixels versus the amount of black pixels in a region. This could define a measurement of edge concentration, like you describe it.

edit flag offensive delete link more

answered 2016-01-27 18:15:52 -0500

SR gravatar image

In general, if any kind of edge detection is desired it would avoid blurring as it actually makes the edge detection only harder. If filtering is needed then use a median or a bilateral filter as these are edge-preserving.

edit flag offensive delete link more

Question Tools


Asked: 2013-04-06 05:11:57 -0500

Seen: 1,283 times

Last updated: Jan 27 '16