Ask Your Question

Detect object in noisy image

asked 2015-07-13 10:24:45 -0500

bjorn89 gravatar image

updated 2015-07-15 05:40:48 -0500

Hi all, as the title says, I need to detect objects in noisy images. Here's how my program should work:

  1. Align 2 images
  2. use absdiff to find the diferences
  3. bound the differences (in my case the objects) with a rectangle.

The problem is that the two images could have only a part in common, so the difference image will be noisy. Here's an example

As you can see, there's a wheel. I need to bound that wheel, but if I use findcontour it get's all the contours except the one of the wheel. Can you help me?

EDIT I've converted to grayscale and appliend a gaussian blur on both images before subtraction. I get this:

How can I proceed now?

EDIT 2 Here's the original images

EDIT 3 I had to remove images

edit retag flag offensive close merge delete


Hi! I've done all the steps you wrote. I'f I apply threshold I get a black image. I'm going to edit the post so you can see what I get!

bjorn89 gravatar imagebjorn89 ( 2015-07-13 11:04:22 -0500 )edit

could you add original images?

sturkmen gravatar imagesturkmen ( 2015-07-13 12:33:56 -0500 )edit

Have you tried to apply Hough circle transform? Try to use the code in this tutorial and see if that helps.

unxnut gravatar imageunxnut ( 2015-07-13 14:33:34 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-13 10:40:03 -0500

thdrksdfthmn gravatar image
  1. I see blue there, so you need to convert to gray-scale.
  2. Have you applied a GaussianBlur on the images before subtraction?
  3. Have you tried to apply threshold, does it make sense? Come back with new info after that ;)
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-07-13 10:24:45 -0500

Seen: 541 times

Last updated: Jul 15 '15