Sonar image preprocessing based on morphological wavelet transform