A new approach to impulsive noise suppression and background normalization of digitized electrocardiogram signals is presented using mathematical morphological operators that incorporate the shape information of a signal. A brief introduction to these nonlinear signal processing operators, as well as a detailed description of the new algorithm, is presented. Empirical results show that the new algorithm has good performance in impulsive noise suppression and background normalization.