1. A computer implemented method comprising: obtaining a first and second images for comparison; globally registering the first and second images; calculating for pairs of a first patch of the first image and second patch of the second image a similarity measure which is a product of luminance and contrast components and a normalized structure component, each component taking a value between 0 and 1; and determining similarity of the images based on the calculated similarity measure.