Function computeDssim