A wavelet-based spatially adaptive method for mammographic contrast enhancement