This paper presents a two-stage impulse noise removal filter from medical images. Quaternion is used to represent differences of two pixels. The pixels are sorted and assigned a rank based on the aggregated sum of pixel differences with other pixels inside the filtering window. The central pixel is considered as corrupted by an impulse if its rank is bigger than a predefined rank and the minimum difference between it and other pixels in the four edge direction inside the window is larger than a predefined threshold. The noisy pixel is replaced by output of vector median filter implemented using quaternion. For color images, both intensity and chromaticity components are used. Quaternion processes color images as single unit rather than as separated color channels. This preserves the correlation and three dimensional vector natures of the color channels. For grayscale medical images, the same algorithm is implemented by using the intensity difference between two pixels. Experimental results show improved performance of the proposed filter in suppressing the impulse noise while retaining the original image details comparing against other well-known filters.
Keywords: Chromaticity; Correlation; Impulse noise; Quaternion.