Performance Analysis of Different Filters for Digital Image Processing

a,b,c,d Assistant professor, Sri Padmavati mahila visvavidyalayam, Tirupati. Article History: Received: 11 January 2021; Accepted: 27 February 2021; Published online: 5 April 2021 Abstract: Digital image processing is one of the drastically growing areas used in various realtime industries like medical, satellite, remote sensing, and pattern recognition. The output of the image processing depends on the quality of the image. Filters are used to modify the images, such as removing the noise and smoothing the images. It is essential to suppress the highfrequency values in the image for smoothening and improving the low-frequency values to enhance the image of strengthening else it doesn't provide good output. This paper discussed various filters and their functionalities concerning digital image processing. Here linear, as well as non-linear filters, are presented. It is easy to decide about the better filter for improving the image processing output from the discussion.


Introduction
When an imaging system captures an image, then the idea seems to have some noises. Normal images are ignored before processing. Medical images need to be examined or processed before any diagnosis. Medical images often not usable because of their illumination variations, poor contrast, etc. This paper explains the image enhancement methods using filters. In images, the image's high frequencies are suppressed by using filters such as smoothening the image and detecting the edge in the image. Many steps are involved are image processing, such as transforming the image into the frequency domain and then multiply this using a frequency filter. Many images often contain many gray values and are eliminated using histogram modification andequalization. Modification on the histogram is used for image reconstruction. Equalizing the histogram is used for improving the contrast by distributing the gray values more evenly. Many types of filters are used in image processing, such as linear filters, non-linear filters, digital filters, etc. Image smoothening is an important process in image processing. It will eventually reduce the noise level. The below image Figure-1 represents the image filtering process.

Related Works
Image processing is done for image enhancement. It is done to maintain the original clarity of the image [1,2,3]. Image enhancement is used for improving the details of the image for viewing. It provides better results after implementing automated image processing techniques. The main goal is to modify the image without losing its image characters. The attributes of the images are preserved even after modification. Digital image processing is the advanced technique used for image reconstruction [4]. Many filter methods are used for image modification or image enhancement. Mainly linear and non-linear filter methods are used for ideal transformations [5]. An advanced model for image transformation is spatial filter usage for better results [6]. These filters are used for removing noise in the image. Many problems are associated with image processing. Example: X-ray enhanced image is not suited for microscopic studies. In this paper, the filters and the properties of the filters are used for enhancing the image. The resultant image from this model is merely free from noises (a):input image (b):output image Figure-1. Before and after noise removal of the sample image Filters are mainly used to filter a user-required pattern, odd data from a whole dataset, or filter out the required pattern from the input data. Various types of filters exist in the computing and electronics industry applications. In image processing, filters are used for noise removal and image enhancement. In other fields, filters are used to filter out specific data from the group of data. Some of the filter types are: •Filters.
•Non-linear Filters. Filters Filters are applied to the image for modification purposes. The filter operation's main specialty is that it uses more than one pixel to generate the pixel value. Example: smoothing filter replaces its own pixel value by half the size of its neighbor pixel value. Generally, filters are categorized into two parts.

Linear Filter
The linear filter is a type of filter that uses the pixel value in the support region. The values used are in the form of linear such as weighted summation. "Filter Matrix" is used tospecify the support region, and it is represented by H(i, j). H denotes the filter region, i and j are column index and row index, respectively. This hotspot location is illustrated in Figure-2 The filter region owns a coordinate system. The hotspot is located in the center of the origin location.

Figure-2. Representation of Hotspot Location. Filters and its Functionalities
A set of all filters used mainly in image processing is described here. General steps need to be followed for applying filters 1. The filter matrix is moved over the image I and H (0, 0). The current image position (u, v) is moving along with the filter matrix. 2. Each filter coefficient H (i, j) is multiplied with its own corresponding image element I (u+i, v+j). 3. From the previous step, all the results are averaged, and the current location of I (u,v) is revealed. Below equation is described from the above steps: ′ , ← = = =− + , + . , (1) In the above equation, " " represents the input location, ′ represents the output location, represents the coefficient, "u, v and i, j" represents the coefficients' location. The types of Linear filters are given below.
Smoothing Filter This filter only contains positive integers. These filters are used for smoothening the input image by removing the noise available in the image.
Box Filter All the filter members for this type are the same. The sample 2D model, 2D structure, and the Box filter example are shown in Figure-3(a).
Gaussian Filter The member location depends on the weight of the filter member. The center takes the maximum weight, and it gradually decreases in weight by moving away from the center. The sample 3D model, 2D structure, and the example for the Gaussian filter is shown in Figure-

Weight Median Filter
It is the same as the median filter. According to the Weight matrix W, each member's extension in the kernel is represented as "weight." The filter member near the hotspot region will get maximum weight than other members.

Figure-5. Weighted Median Filter
The weighted median filter takes the weighted median value from the image data I and weight matrix W, and it is illustrated in Figure-5. The image's original data is kept from the weighted median value, and the noise values are filtered.

Experimental Results
This paper verifies thevarious filters' performance is implemented and experimented with in MATLAB software.One hundred images are tested in the experiment and the results are verified in terms of MSE and SNR values and are calculated from the input and output images. From the MSE PSNR values, it is clear that the output images' quality is better than the input images. Table-1 Figure-6 shows the input image, noise removed, and enhance images respectively for the input images. All the input images are taken from the MATLAB images folder, such as baboon, Barbara, Lena, pepper, Santiago, cameraman, and Elaine. The PSNR and MSE values for the set of all input values are calculated and given in Table-1. All the filters are implanted and tested on the input images and results obtained. Some of the images are not used in the earlier methods. The experiment is carried out on various threshold values, and the results are verified.
The threshold values given in the processing influence the quality of the image. Thus, the images' threshold values are changed within two values, such as lower threshold value and a higher threshold value for verifying the PSNR and MSE. Based on these two values, the image quality is determined.

Conclusion
Filters are used to reduce the noise level and improve the contrast in the image. Filters are highly useful in medical image processing. Many imaging techniques and many types of filters are used for processing the image. From the above model, various filters are used for the image, reducing the image's noise level. Many types of filters are used and compared on different images. By determining the hotspot location and finding their coefficients are related to the noise level. The PSNR, SSIM, MSE values of all images are obtained using MATLAB, and they are compared. Not all the filters provide the exact same results, and the results are based on the image's noise level. Further improvements will be made using several imaging techniques, and this will provide a more enhanced image by reducing most of the noise level with great details.