Ask Your Question
0

How to find different areas of the two images

asked 2015-04-21 07:31:12 -0500

nistar gravatar image

image description

Now I have extracted the two ROI,

but their relative positions do not coincide, and because it is real-time processing, there may be rotated and scaled

can not be directly obtained by subtraction of their different places.

How to find different areas (7) of the two images?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2015-04-21 07:39:20 -0500

wl2776 gravatar image

updated 2015-04-22 03:14:36 -0500

I'd suggest warping images to the common coordinate system and then subtract warped results. You could detect 2D feature points with any 2D feature detector, for example, Harris corners, or BRISK, or SIFT, then calculate a homography matrix and then use it to transform one of images to the coordinate system of another.

Also, it would be useful to apply some filtering and morphology to make robust comparisons.

edit flag offensive delete link more

Comments

”Hu“ can find out the difference?

nistar gravatar imagenistar ( 2015-04-21 07:55:51 -0500 )edit

I've never used Hu moments in my practice, however, Wikipedia says that they are weighted averages of image pixels. So, for each moment, you supply an image to a function and it returns you a single value, depending on all image pixels. Therefore, probably, they can detect that pictures differ, while you seem to be interested in locations of those differences. Answering this your question - unlikely.

wl2776 gravatar imagewl2776 ( 2015-04-21 10:44:26 -0500 )edit
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2015-04-21 07:31:12 -0500

Seen: 182 times

Last updated: Apr 22 '15