Introduction - If you have any usage issues, please Google them yourself
Using matlab to calculate the Mahalanobis distance for the image, You can get a very accurate amplitude, frequency, phase estimation, University of numerical analysis algorithms.