Copied from opencv site, method to getMSSIM