Post-processing noise removal algorithm for magnetic resonance imaging based on edge detection and wavelet analysis