Finding identical parts in one image (16 color image)
I'm reworking retrogames. Some of these contain duplicate graphics for various reasons. Duplicate graphics use space in video RAM and bloat the game. Video RAM was very limited back in the day, so every bit of data I can save is valuable.
The graphics are stored in a 16 color format which I can export and open with GIMP. This 16 color format makes it almost impossible to find duplicates with tools like "mark identical colors". Currently I'm doing this by simply looking at the images right now, but it's tough on the eyes.
Are there any other ways?
Here is an example image of what I'm looking for. I've put colored borders around the identical parts.