First time here? Check out the FAQ!

Ask Your Question
0

Why is contours changing slightly allthough the object is still?

asked May 13 '17

agroms gravatar image

updated May 15 '17

berak gravatar image

Hello, I have been working a lot with contours lately in different video programs. If I measure the contour of a object in realtime or video, and even though the camera and object is not moving at all and nothing is changed in regards to lighting, it seems like the contours are flickering and sometimes changed slightly. It is not more than maybe 1-2 pixel in change along the edge. My question is if there is any special reason for this? Is the program or my computer to slow to calculate exactly the same contour for each frame?

Thanks in advance for any explenation!

Preview: (hide)

1 answer

Sort by » oldest newest most voted
2

answered May 13 '17

matman gravatar image

updated May 13 '17

That's because of camera noise. Depending on what you are doing bluring image slightly (GaussianBlur, boxBlur, medianBlur) can help. Contour calculation is always the same.

EDIT: medianBlur with kernel size 3 works good for salt-and-pepper noise.

EDIT2: Canny edge detection can jump between two pixels if the edge is very sharp in this case GaussianBlur might help.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: May 13 '17

Seen: 677 times

Last updated: May 13 '17