International Journal of Computer Applications (0975 8887) Volume 88 No.5, February 2014 1 Impulse Noise Removal using Optimal Direction Method with Fuzzy based Median Filter Raja S Christ the King Engineering College Karamadai, Coimbatore, Tamilnadu, India C.Suresh Gnana Dhas, Ph.D Vivekanandha College of Engineering for Women Thiruchencode Tamilnadu, India V.Suresh babu Christ the King Engineering College Karamadai, Coimbatore, Tamilnadu, India ABSTRACT Impulse noise is a spark that affects the contents of digital images. The proposed method detects the random valued impulse noise efficiently. Then the detected noisy pixels are restored by the median of neighbouring noise-free pixels. In a detection window of this proposed method, four directions are considered. From that, optimal direction is obtained by standard deviation. Threshold value is calculated by finding normalised distance between original pixel and other pixels in the optimal direction. The threshold value is used as a measure to detect whether the tested pixel is noisy or noise-free pixel. More edge pixels can be detected if the accurate or optimal direction of the edge is determined. The noisy pixel that has small deviations with the pixels in the optimal direction is seems like the original pixel. Here, in detection and in filtering, the window size is adaptive which depends on noise density in the detection window frame. The optimum threshold limit is fixed as 0.8 by using normalised distance between the central pixel and pixels in the optimum direction in first iteration. In second iteration, the threshold value should be kept very close to the value zero to remove the undetected noisy pixel and that was found as 0.4. In second iteration the noisy pixels will be mostly eliminated. It is found that the proposed method gives better results when compared to adaptive median filter, progressive switching median filter, in terms of PSNR and MSE values and output images are compared using MATLAB. General Terms Noise Removal, optimal direction Keywords Optimal direction, PSNR, MSE, MATLAB 1. INTRODUCTION Digital images acquired through many consumer electronic products are commonly subjected to the contamination of impulse noise. In the process of image acquisition and transmission, impulse noises often cause serious degradation of the image quality. Images are frequently corrupted by impulse noise due to camera sensors or transmission in noisy channels [1]. It occurs in bioluminescence imaging for which the image acquisition is disturbed by the presence of cosmic noise. Cosmic noise can be considered to be an impulse noise. For this application in bioluminescence imaging, a step of filtering is needed as a pre-processing step before the de- convolution task. Impulse noise is often introduced into images during acquisition and transmission. Based on the noise values, it can be classified as the easier-to-restore salt-and-pepper noise and the more difficult random-valued impulse noise [1]. There have been much more methods for removing the former and some of them have performed very well [2] [5]. So here, we only focus on removing the latter. Among all kinds of methods for impulse noise, the median filter [6] is used widely because of its effective noise suppression capability and high computational efficiency. However, it uniformly replaces the gray-level value of every pixel by the median of its neighbors. Consequently, some desirable details are also removed, especially when the window size is large. In order to improve the median filter, many filters with an impulse detector are proposed, such as signal-dependent rank order mean (SD-ROM) filter [7], multistate median (MSM) filter [1],adaptive center weighted median (ACWM) filter [8], the pixel-wise MAD (PWMAD) filter [9], and iterative median filter [10].These filters usually perform well, but as the noise level is higher than 30%, they tend to remove many features from the images or retain too much impulse noise. Recently, robust statistics based filters have emerged for the removal of impulse noise. The most recent statistic is rank ordered-relative difference (RORD) [9], which is used to detect more edge pixels, by implementing the well- known statistic of rank-ordered absolute difference (ROAD) [10] not on the noisy image, but on the relative difference image. Though RORD delivers decent results, it still exhibits bad performance, in the case of blotches of noise, where the intensity differences between the neighboring pixels are small. In this paper, we propose a novel algorithm based on finding the optimal direction used as a measure to detect whether the tested pixel is noisy or noise-free pixel. More edge pixels can be detected if the accurate or optimal direction of the edge is determined. The noisy pixel that has small deviations with the pixels in the optimal direction is deemed an original pixel. This letter is organized, after the introduction, as follows. In Section 2, we explain the proposed algorithm. In Section 3, we demonstrate numerical results and visual examples from simulations, and finally, we give a conclusion in Section 4. 2. PROPOSED METHOD In algorithm description method, the filtering window size is considered as odd integer (e.g., 9). Then four directions of the filtering window is considered as four vector i.e., two diagonals and a vertical column and a horizontal row which passes through the center pixel. In this, optimal