Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.