Ask Your Question
0

Comparing images with changes

asked 2016-01-21 15:22:26 -0600

I'm trying to compare two images that are basically the same with a. Some labels on the image moved to a different location b. One image has an extra icon that the other doesn't

How do I compare the two with ignoring (a.) and highlight (b.) ? Basically the labels are still in the image and usually render in different locations. But a basic absdiff shows these labels in different places as well.

I only want to see objects that aren't present in either one of the two images .

What algorithm or methods do I use ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-22 17:15:38 -0600

Tetragramm gravatar image

If the labels moved a long way, there'll be two copies in the absdiff, so you can use matchTemplate to find the second copy and ignore both. The icon will only have one copy, so you keep it.

If they're only moving a little, you can try creating the template for matchTemplate from one and check the area in the other. Whether that works depends on the specifics of your image.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-01-21 15:22:26 -0600

Seen: 100 times

Last updated: Jan 22 '16