Phase Recovery Using The Wavelet Transform