broken image edges with canny operator07

asked 2016-04-25 15:57:41 -0500

Nabeel gravatar image

I am using canny edge detector to detect edges from the input image.

In every input image, there can be two objects (main object and another object inside it) as shown in the sample image. Therefore, I am supposed to detect two edges in such scenarios

image description

I am using canny edge detector to detect edges from the input image.

In every input image, there can be two objects (main object and another object inside it) as shown in the sample image. Therefore, I am supposed to detect two edges in such scenarios

enter image description here

I determine the upper and lower thresholds automatically from the input image (using median and sigma). Most of the time canny works well but sometimes when the contrast of the image is not very good then edge detection fail as shown in following examples (NOTE:- outer edge is always detected correctly problem occurs with the inner edge)

image description image description

Canny detected the edge for the outer boundary but failed for the inner object. At the moment, I am using openCV with python. Is there any way I can improve the results of canny edge detection

Any help will be really appreciated

edit retag flag offensive close merge delete

Comments

LBerger gravatar imageLBerger ( 2016-04-26 02:52:05 -0500 )edit