Ask Your Question
1

edge corners are not sharp with canny filter

asked 2016-01-26 20:55:59 -0600

NabeelKhan gravatar image

Hi,

I am trying to detect edges from an image using Canny filter. I have been able to detect the images but the corners are not very sharp (highlighted in red circles). Surprisingly, the first corner is sharp and not burned out compared to other corners. Why this is happening and how it can be avoided ??

Please have a look at the attached image.

image description

My code:

edges = cv2.Canny(image,0,255)

I have not applied any blurring as it makes the corners worse. Moreover, the change of min and max values for Canny also does not make any difference

edit retag flag offensive close merge delete

Comments

Your left image have got some gray values (0, 128 ,255) Your result does not look really wrong.

LBerger gravatar imageLBerger ( 2016-01-28 02:03:06 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-27 18:12:55 -0600

SR gravatar image

I think this is a bug. Canny should not "modify" the edge, it should only find the ridge.

edit flag offensive delete link more

Comments

any solution with openCV

NabeelKhan gravatar imageNabeelKhan ( 2016-01-27 19:13:41 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-26 20:55:59 -0600

Seen: 632 times

Last updated: Jan 27 '16