- Open Access
- Total Downloads : 29
- Authors : Manoj Kumar M, Vadiraja A
- Paper ID : IJERTCONV5IS19010
- Volume & Issue : ICPCN – 2017 (Volume 5 – Issue 19)
- Published (First Online): 24-04-2018
- ISSN (Online) : 2278-0181
- Publisher Name : IJERT
- License: This work is licensed under a Creative Commons Attribution 4.0 International License
Adaptive Filters on Android Enabled Devices
Manoj Kumar M
Asst. Professor, Dept. of CSE, Jyothy Institute of Technology, VTU, Bangalore, India
Vadiraja A
Asst. Professor, Dept. of ISE, Jyothy Institute of Technology, VTU, Bangalore, India
Abstract: Android is a mobile operating system which is very popular because of its user friendliness and openness. Android provides a complete set of software for mobile devices: an operating system, middle ware and key mobile applications. Image filtering is useful for many applications such as removing noise, smoothing, sharpening, edge detection and etc.. A filter is defined by a kernel, which is a small array applied to each pixel and its neighbors within an image. Image filtering is a branch of Digital Image Processing (DIP),[1] where the aim is to reduce noise while maintaining the quality of the signal data. Adaptive filters offers advantages over 'fixed' filters. A fixed filter reduces image quality. Adaptive filters are used to overcome from the problem of image non-stationary. Recursive filter have many advantages when they applied to an adaptive filters to image.[1]
Keywords: Android, Adaptive Filters, Contra Harmonic Mean Filter, Quality Metrics, image processing
-
INTRODUCTION
Recently, a lot of progress has been made in the direction of designing, building and implementation of different applications for Android mobiles like weather forecasting, Business applications, Games, Global positioning system, Image processing applications etc. Image processing on mobile phones is an exciting field with many challenges due to limited hardware and connectivity. The estimation of images is an essential problem in two important areas of image processing: enhancement and data compression. Two approaches have been used in dealing with these non stationary image signals. The first approach is to design an adaptive method of filtering which takes into account the image non stationary and varies their parameters according to these image changes[6]. The second method turns the problem around and transforms the image so that it possesses near stationary statistics before feeding it to a non adaptive filtering process. Adaptive filters offering advantages over 'fixed' filters have been used but suffer some reduction of image quality. Linear filtering does not take into account the local features of the image because it causes for example blurring of the edges. An improvement is changing the filter parameters according to the local statistics, Change the shape and the size of the neighborhood. Suppress the filtering if there are features that we want to preserve in the neighborhood. Adaptive filtering techniques must be implemented to promote accurate solutions and a timely convergence to that solution. Adaptive filters are used to overcome from the problem of image non-stationary.
-
Adaptive Filters
Adaptive filtering techniques must be implemented to promote accurate solutions and a timely convergence to that solution[9]. The basic structure of Adaptive Image Filters involves loading the input image that is to be processed, we applying different adaptive filter method to process image and Quality Parameters are calculated which is shown below, a systematic flow diagram of Adaptive Image Filters is shown in Fig 1.
-
Adaptive Filters on Android platform
The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android applications are developed using the Java language.
Figure 1: Flowchart of Adaptive image filtering system
Figure 1 depicts a flowchart of an adaptive image filtering system, the input for the system is an image, the input image is processed with adaptive filters, and quality parameters are applied to get quality parameter values.
-
-
NOISE MODEL
Any undesired information that contaminates an image. Noise models is a random variable with a probability density function (PDF) that describes its shape and distribution The actual distribution of noise in a specific image is the histogram of the noise. Noise can be modeled with Gaussian (normal), uniform, salt-and-pepper (impulse), or Rayleigh distribution[12].
-
Salt and Pepper Noise
Salt and pepper noise can also called impulse noise, shot noise or spike noise typically caused by malfunctioning pixel element in camera sensors, faulty memory locations, or timing errors in digitization process. It represents itself as randomly occurring white and black pixels. This type of noise involves usage of median filter and mean filter.
There are only 2 possible values, a and b, and the probability of each is typically less than 0.2 with numbers greater than this the noise will swamp out the image.
-
Gaussian Noise
This is independent at each pixel and independent of signal intensity caused by SyQuest noise. SyQuest noise is an electronic noise generated by thermal agitation of charge carriers inside electrical conductors occur from electronic noise in image acquisition system. Most problematic with poor lighting conditions or vary high temperatures.
-
Uniform Noise
This is caused by quantizing the pixel of the sensed image to a number of discrete levels. It can be used to generate any other type of noise distribution, and is often used to degrade images for the evaluation of image restoration also since provides the most unbiased or neutral noise model.
Where
Mean = (a + b)/2 Variance = (a b) 2 /12
-
-
ADAPTIVE FILTER ALGORITHM
The Adaptive Filter methods implemented in Android platform are described in detail with their respective algorithms as follows,
-
Adaptive-neighborhood noise subtraction (ANNS) Used for removing additive signal-independent noise. Estimates the noise value in the seed pixel with an adaptive neighborhood and subtracts it to obtain an estimate of the original.
Algorithm:
Input: Noise image, size MxN, g(m,n). Output: Filtered image, size MxN, F(m,n).
Step1: consider the noise image g(m,n) as input image.
n
Step2: calculate the mean (n(m,n)) and variance ( 2(m,n)) of the input image g(m,n).
g
Step3: calculate local mean (g(m,n)) and local variance ( 2(m,n)) from rectangular window around the pixel and slide the widow pixel by pixel.
Step4: apply the formula,
-
Alpha Trimmed Mean Filter
In this algorithm we are going to calculate the alpha mean for entire Image. The entire image is replaced with alpha mean calculated. This algorithm works on different noise images such as Gaussian noise, speckle noise, salt and pepper noise etc.
Algorithm:
Input: Noise image, size MxN, g(m,n) Output: Filtered image, size MxN, F(m,n)
Step1: Consider the noise image g(m,n).
Step 2: Select the pixel range, the range will be (P,N-
P) where P is the clipping factor. Step 3: Calculate the alpha mean,
Step 4: Replace the value of each pixel by the alpha mean calculated.
-
Order Statistic Filter
One of the most important families of nonlinear image filters is based on order statistic. The widely used median filter is the best known filter of this family. The adaptation of order statistics filters is a very important task. It is well known that image characteristics (e.g. local statistics) change from one image region to the other. Noise characteristics usually vary with time.
Algorithm:
Input: Noise image, size MxN, g(m,n) Output: Filtered image size MxN, F(m,n) Step1: Take noise Image g(m,n)
Step 2: Select the neighborhood pixel around the pixel. Step 3: Apply the formula,
Wi is the weight and Xi is the grey level at each pixel.
-
Contra Harmonic Mean Filter
Contra harmonic mean filter: This filter computes the contra harmonic mean of the pixels intensity values. The contra harmonic filter reduces to the mean filter for Q = 0, and to the harmonic mean filter for Q = -1.
Algorithm:
Input: A(i,j), noise image, size MxN. Output: A(out), Filtered image, size MxN.
Step 1: Consider the noise image A(i,j).
Step 2: Apply sliding window to the image and then apply the formula,
Step 3: Replace the value of each pixel by the Contra Harmonic mean calculated.
Step 4: Apply the quality parameters.
-
-
QUALITY METRICS
Image Processing Filters are used to reduce the noise or speckles in an image. These are mainly used to suppress either high frequency components in the image i.e. smoothing the image or low frequency components i.e. enhancing or detecting edges in an image. The metrics used for image filtering make use of full reference quality metrics and no-reference quality metrics. The metrics used for image filtering make use of full reference quality metrics and no reference quality metrics.
-
DESIGN ANALYSIS
Design Analysis is the process or art of defining the architecture, components, modules, interfaces, and data for a design to satisfy specified requirements. The modules of the system are as follows. Loading of Image: This is the first phase in an image processing system. This phase deals with loading the acquired image by the camera which is the input to the image processing system. The images are pushed to sdcard or obb so that it can be processed further. Selecting the particular noise image: This is the second phase in the system, where particular noise image from the sdcard or obb is selected to process. The noise may be Gaussian noise, uniform noise or Salt and Pepper noise. Applying Adaptive Filter Method: In this method the Adaptive Filter Methods are applied to the degraded image, actually all seven methods are applied on the three different noisy images in order to remove the noise[12]. Calculating Quality metrics: In order to analyze which algorithm works better on which type of noise we need to calculate the Quality Parameters value.
A. Sequence diagram for Adaptive Filters on Android platform
Sequence diagram is also called as timing diagram. It shows series of operations that takes place between user and application. Sequence diagram shows live process, vertical lines, and horizontal lines shows the message carried between the user and application.
Figure 2 Adaptive image filtering system
Figure 2 shows the interaction between the user and Adaptive image filtering system to get quality metrics.
Figure 3 Flowchart of adaptive image filter
Figure 3 shows detailed flowchart of an adaptive image filtering system, the input for the system is an image, select the adaptive filter method, the method calculates quality parameters, filtered image and quality parameters are displayed.
-
RESULTS AND ANALYSIS
Figure 4 Gaussian noise images
Figure 5 Uniform noise images
Figure 6 Salt and Pepper noise images
Figure 4, Figure 5 and Figure 6 depicts examples of Gaussian, Uniform and Salt pepper filtering techniques respectively. Table 1, Table 2 and Table 3 shows quality parameters obtained by Gaussian, Uniform and Salt pepper techniques respectively.
CONCLUSION AND FUTURE WORK
Adaptive filter is the one of the best method to remove the noise present in the image. Adaptive filters works excellently on any kind of noise finally resulting in filtered output image from the noise image. In this project we used three different noises such as Gaussian noise, Uniform noise and Salt and Pepper Noise and applied different Adaptive filters in Android platform. From the result
obtained we finally conclude that, for Gaussian noise, and Uniform noise, Contra Harmonic Mean Filter filters gives better results based on the quality metrics values. More samples can be considered and can be tested with android adaptive filtering system.
REFERENCES
[1]. Pitas and Anastasios N. evetsanopolos, Order Statistics in Digital Image Processing, Ioannis Processing of the IEEE, vol. 80, no. 12, December 1992. [2]. Ji-Nan Lin and Rolf Unbehauen, 2-D Adaptive CPWQ Filter for Image Enhancement, IEEE, University Erlangen- Niirnberg 1993. [3]. K. N. Plataniotis A. N. Venetsanopoulos, Adaptive Filters for Multichannel Signal Processing, IEEE, School of Computer Science, 1998. [4]. Mohiy M. Hddhoud David W. Thomas, The Two- Dimensional Adaptive LMS [TDLMS] Algorithm, IEEE Transaction on Circuits and systems vol. 35, no. 5, May 1988. [5]. Michael Ropert and Danielle Pele, Synthesis of Adaptive Weighted Order Statistic Filters with Gradient Algorithms and Application to Image processing, IEEE, 1994 [6]. Stephen J. Viscera, Annear S. Dawood, and John A. Williams, FPGA Based Real-time Adaptive Filtering for Space applications, IEEE, 2002. [7]. Kevin Erler and Ed Jernigan, Adaptive Image Restoration Using Recursive Image Filters IEEE Transactions on Signal Processing, vol. 42, no. 1, July 1994. [8]. C Smith, The Two-Dimensional LMS algorithm and its applications to sub-band Filtering D R Campbell University of Paisley, UK, July 1995. [9]. Xiaoyin Xu, Eric L. Miller, Ongbin Chen, and Mansoor Sarhadi, Adaptive Two-Pass Rank Order Filter to Remove Impulse Noise in Highly Corrupted Images, IEEE, February 2004. [10]. Edmond Nezry, Armand Lopes, Francis Yakam-Simen Prior Scene Knowledge for the Bayesian Restoration of Mono- and Multi-Channel SAR Images, IEEE, 1997. [11]. M. Gabrani, c. Kotropodos, I. Pitas, Cellular LMS L-Filters for noise suppression in still Images and image Sequences, 1994 IEEE. [12]. Mahdi Shaneh, and Arash Golibagh Mahyari, Image Enhancement using -Trimmed Mean -Filters, World Academy of Science, Engineering and Technology 59, 2011. [13]. Mohammed Charif- Chefchaouni and Dan Schonfeld, Morphological Representation of Order-Statistics Filters,, IEEE Transactions on Image Processing vol 4. no 6, 1995