An Image Edge Detection Algorithm Based on Improved Mathematical Morphology and Wavelet Transform