Just a wild guess, but I suppose you could resize both images to a significantly smaller equal size using an averaging algorithm, and then go pixel by pixel getting the Manhattan distance (look it...