A Wavelet-Based Similarity Measure to register pre- /intra-operative MR images of the brain