Abstract: The present disclosure relates to image filtering techniques for enhancing image quality. In one embodiment two filtering techniques are applied on an image. Firstly an adaptive weighted median filtering operation is performed on an acquired low contrast image corrupted by impulsive noise. Subsequently a guided image filtering on the image obtained from adaptive weighted median filtering operation to de-blur and enhance the contrast that ultimately assures to preserve the edges of the images. In addition the image filtering for enhancing image quality is enhanced by several variations of data adaptive guided image filtering and adaptive window sizes for guided image filtering techniques. FIG. 9
TECHNICAL FIELD
The present disclosure relates to field of image processing. In particular the present invention relates to image filtering techniques for enhancing image quality.
BACKGROUND
Developments in image processing have made possible the processing of images in a variety of forms. A variety of filtering methods are available to improve the quality of images including brightness contrast non-blurring of edges in the images etc. Conventional available filters reduce impulse-type noise in an image. However the removal of noise adversely affects edges or corners which exist in an image. The existing techniques while alleviating the noise excessively in the acquired image introduces a severe blurring effect in the discontinuity or edge portions. Also the noise smoothening is insufficient because the images are low light conditioned images.
Few images are low light conditioned or low contrast type images. An example of such image is a retinal image obtained from a retinal camera. The imaging is plagued by poor visibility conditions due translucent nature of the several tissues exist in the anatomical structure of the retina in the human eye. This amounts to the problem of spatially varying reduction of contrast due to stray radiations which are scattered by the tissue material. Additionally the acquisition of image would suffer from impulsive type of noise which is caused by malfunctioning pixels in camera sensors.
Figure 1 illustrates an image acquired from a camera that is corrupted by impulsive noise due to camera sensor and low contrast. Conventional image filtering techniques apply noise smoothing filters with filter co-efficient either fixed or determined by some varying co-efficient that is governed by some error evaluation rule between updated output and desired output.
Figure 2 illustrates the resultant image obtained by employing conventional noise smoothening processes. The conventional process enhances the image but at the same time smoothens the edges and fails in enhancing the specially reduced contrast in the image due to scattered light. Thus the conventional process yields low contrast image. For purpose of understanding a portion of image 202 has been highlighted in Fig. 2. In the highlighted portion 202 the image has become blur and the lines are fainted due to smoothing of image. The highlighted portion 202 is just an exemplary embodiment however the same effect can be seen over the entire image.
Therefore the present disclosure overcomes the above-mentioned problems by providing system and methods for tackling both the impulsive noise occur in the retina image due to malfunction of camera sensor and image contrast enhancement that suffered due to low light visibility conditions
SUMMARY OF THE DISCLOSURE
The shortcomings of the prior art are overcome and additional advantages are provided through the provision of a method and a system as described in the description.
The present disclosure provides methods and apparatus to reduce impulsive noise and also correct the image against the attenuation due to air light condition by estimation of the required parameters using special type of filters.
The present disclosure involves applying widow size adapted weighted median filtering and guided image filtering in sequel to arrive at edge preserved retina image.
Accordingly the present disclosure relates to a method for enhancing image quality. The method comprises obtaining an image and performing adaptive weighted median filtering operation on the obtained image to produce an intermediary image by removing impulse noise. Further a guided image filtering operation is performed on the intermediary image to enhance contrast and preserve edges of the image.
Accordingly the present disclosure relates to a system for image quality enhancement. The system comprises a median filtering module configured to perform adaptive weighted median filtering operation on the image to produce an intermediary image by removing impulse noise. Further the system comprises a guided image filtering module configured to filter the intermediary image to enhance the contrast and preserve the edges of the image.
The foregoing summary is illustrative only and is not intended to be in any way limiting. In addition to the illustrative aspects embodiments and features described above further aspects embodiments and features will become apparent by reference to the drawings and the following detailed description.
BRIEF DESCRIPTION OF THE DRAWINGS
The features of the present disclosure are set forth with particularity in the appended claims. The disclosure itself together with further features and attended advantages will become apparent from consideration of the following detailed description taken in conjunction with the accompanying drawings. One or more embodiments of the present disclosure are now described by way of example only with reference to the accompanied drawings wherein like reference numerals represent like elements and in which:
Figure 1 illustrates an acquired image corrupted by impulsive noise;
Figure 2 illustrates an enhanced image output by conventional filtering techniques;
Figure 3 illustrates an enhanced image output by filtering techniques in accordance with an embodiment of the present disclosure;
Figure 4 illustrates a block diagram of the filtering technique in accordance with an embodiment of the present disclosure;
Figure 5 illustrates a block diagram of the filtering technique in accordance with another embodiment of the present disclosure.
Figure 6 illustrates a flowchart for implementing weighted median filtering in accordance with an embodiment of the present disclosure.
Figure 7 illustrates the selection of a window around a pixel of an image in accordance with an embodiment of the present disclosure.
Figure 8 illustrates a flowchart for implementing guided image filtering in accordance with an embodiment of the present disclosure.
Figure 9 illustrates a block diagram of adaptive guided image filtering technique in accordance with another embodiment of the present disclosure.
Figure 10 illustrates a block diagram of adaptive guided image filtering technique in accordance with another embodiment of the present disclosure.
The figures depict embodiments of the disclosure for purposes of illustration only. One skilled in the art will readily recognize from the following description that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the disclosure described herein.
DETAILED DESCRIPTION
The foregoing has broadly outlined the features and technical advantages of the present disclosure in order that the detailed description of the disclosure that follows may be better understood. Additional features and advantages of the disclosure will be described hereinafter which form the subject of the claims of the disclosure. It should be appreciated by those skilled in the art that the conception and specific embodiment disclosed may be readily utilized as a basis for modifying or designing other structures for carrying out the same purposes of the present disclosure. It should also be realized by those skilled in the art that such equivalent constructions do not depart from the spirit and scope of the disclosure as set forth in the appended claims. The novel features which are believed to be characteristic of the disclosure both as to its organization and method of operation together with further objects and advantages will be better understood from the following description when considered in connection with the accompanying figures. It is to be expressly understood however that each of the figures is provided for the purpose of illustration and description only and is not intended as a definition of the limits of the present disclosure.
The present disclosure relates to field of image processing. In particular the present invention relates to image filtering techniques for enhancing image quality.
Accordingly the present disclosure relates to a method for enhancing image quality. The method comprises obtaining an image and performing adaptive weighted median filtering operation on the obtained image to produce an intermediary image by removing impulse noise. Further a guided image filtering operation is performed on the intermediary image to enhance contrast and preserve edges of the image.
In one embodiment of the present disclosure the adaptive weighted median filtering operation and guided image filtering operation derive filter coefficients from the obtained image.
In another embodiment of the present disclosure the adaptive weighted median filtering operation derives filter coefficients from the obtained image and the guided image filtering operation derives filter coefficients from the intermediary image.
In yet another embodiment of the present disclosure the adaptive weighted median filtering operation comprises selecting a pixel of the obtained image and forming a window using all adjacent pixels around the selected pixel. Then a pixel with maximum value and a pixel with minimum value in the window is determined. Further value of the selected pixel is compared with the minimum pixel value and the maximum pixel value. Upon comparing size of the window is increased by including all pixels adjacent to the window until the selected pixel value is determined to be within the minimum and the maximum pixel value. Alternatively if upon comparison the selected pixel value is determined to be within the minimum and the maximum pixel value replacing the selected pixel value with a median of all the pixels values within said window.
In still another embodiment of the present disclosure the filter coefficient is calculated by using an offset value.
In yet another embodiment of the present disclosure the offset value is set as one of maximum pixel value of a selected window and median value of pixels of the selected window upon determining mean removed guiding image pixel value to be positive. Alternatively the offset value is set as one of minimum pixel value of the selected window median value of pixels of the selected window and zero upon determining the mean removed guiding image pixel value to be negative. Further the offset value is set as zero upon determining the mean removed guiding image pixel value to be zero.
In still another embodiment of the present disclosure size of the selected window is fixed.
In another embodiment of the present disclosure size of the selected window is determined for each pixel value by comparing the difference between variances of two consecutive odd size windows with a threshold value. Upon determining the difference to be less than the threshold value selecting the selected window size as larger window size of the two consecutive odd size windows. Upon determining the difference to be greater than or equal to the threshold value increasing size of the two consecutive odd size of windows by two and performing the above steps.
In yet another embodiment of the present disclosure the size of window is initially set as 3x3.
Accordingly the present disclosure relates to a system for image quality enhancement. The system comprises a median filtering module configured to perform adaptive weighted median filtering operation on the image to produce an intermediary image by removing impulse noise. The system comprises an adaptive data selection module configured to generate filter coefficients. Further the system comprises a guided image filtering module configured to filter the intermediary image to enhance the contrast and preserve the edges of the image.
Figure 3 illustrates an enhanced image output by filtering techniques in accordance with an embodiment of the present disclosure. The filtering technique of the present disclosure removes impulsive noise from the image and then performs an enhancement of the low light impulsive noise removed imaged with preservation of edges. In Fig. 3 a portion of the image 302 has been highlighted for the purpose of understanding. The filtering technique of present invention preserves edges while removing noise. Therefore the portion 302 shows the lines without any distortion and smoothing. The portion of the image 302 is highlighted as an exemplary embodiment and the same effect can be seen through the image of Fig. 3.
Figure 4 illustrates a block diagram of the filtering technique in accordance with an embodiment of the present disclosure. In an embodiment the filtering technique comprises an adaptive weighted median filter 402 and a guided image filter 404. Initially an input image is provided to the adaptive weighted median filter 402. In an embodiment the acquired image 406 is taken as the input image. The input image used in embodiments of the present include but are not limiting to typical intensity images low light images and natural light images of gray or colour image. The filter coefficients for the adaptive weighted median filter 402 are derived from the acquired image 406 itself. By inputting the acquired image 406 as input image prior information is obtained about the position of discontinuities or edges. Further by using the acquired image 406 we obtain other conditions required for filtering such as mean variance and other parameters.
The adaptive weighted median filter 402 processes the inputted acquired image 406 and outputs an intermediate image 408. The intermediate image 408 is a smoothened image from which impulsive noise has been removed. In order to bring back the edges and discontinuities the intermediate image 408 is input to the guided image filter 404. Simultaneously the acquired image 406 is also input to the guided image filter 404. The guided image filter 404 derives filter coefficients from the acquired image 406 and processes the intermediate image 408 to output a final image 410. The final image 410 has enhanced contrast and also the edges of the image are preserved.
Figure 5 illustrates a block diagram of the filtering technique in accordance with one embodiment of the present disclosure. According to this embodiment of the present disclosure an image is input to the adaptive weighted median filter 402. In an embodiment the acquired image 406 is taken as input image. The filter coefficients for the adaptive weighted median filter 402 are derived from the acquired image 406 itself. The adaptive weighted median filter 402 processes the acquired image 406 and outputs an intermediate image 408. This intermediate image 408 is then provided as input to the guided image filter 404. The filter coefficients required for filtering the image by the guided image filter 404 are also derived from the intermediate image 408. The intermediate image is then processed to output a final image 410. The contrast of the final image 410 is enhanced and the edges of the image are preserved.
Figure 6 illustrates a flowchart for implementing weighted median filtering in accordance with an embodiment of the present disclosure.
The adaptive weighted median filtering involves two implicit processes wherein it selects the window size adaptively based on specific condition and also performs a weighted median filtering as described below.
An image is characterised as each pixel is correlated to its neighbouring pixels with either high or low correlation. This characteristic is fundamental to decide the degree of smoothness in the region or classify the various regions of the image. If the correlation is low then it amounts to indicate as sharp discontinuity in the region or boundary of a region like edges or corners or regions are separated by two distinctive levels of contrast regions. On the other hand if correlation is high then it amounts to indicate the region is smooth. This indicator serves as a primary attributes in any image analysis algorithm. In order to exploit these characteristics a local window of pixels is considered around a specified pixel with certain size. The size of the window determines the localness the dependency or correlation that exists between neighbourhood pixels.
Figure 7 illustrates the selection of a window around a pixel of an image in accordance with an embodiment of the present disclosure. In an exemplary illustration figure 7 shows for a pixel in the image which is rounded off neighborhood pixels with in a window of 3x3 (minimum odd sized window) 702 are selected. Then pixels having a maximum and a minimum value in said window are identified. If the value of center pixel in the window is strictly within this maximum and minimum value of the identified pixels the weighted median filtering is performed. On the other hand if the value of center pixel is either equal to minimum or maximum value of the identified pixels then the window size is increase to next odd value i.e. window of 5x5 shown as 704 in the figure and the condition is check again till the center pixel value is within the maximum and the minimum value in the selected window.
Once the selected pixel is strictly within the minimum and the maximum value for the compute median med xk and weight ak Then an intermediate image pixel is computed.
Repeat the above process throughout the image by sliding center image to next pixel in raster scan manner using original image. The output obtained by adaptive median filtering is intermediate image which is alleviated by impulsive type of noise.
The adaptive weighted median filtering performs the following operations.
First all the variables are initialized at step 602. Initialization comprises setting a value for window wk formed around a selected pixel xk where size of the window is defined by wsize =|wk|. The window is formed using all adjacent pixels around the selected pixel. Further a weighting matrix ak is calculated as hsize * vsize where hsize and vsize are horizontal and vertical size of the input image. Then an acquired image (any low contrast image) is taken as input image and the image is represented as xij where i = 0 to (vsize-1) j=0 to (hsize-1). Further an image scaling parameter alpha is initialized. The value of alpha can be between 1 and 3. In one embodiment the value of alpha is taken as 1.
After initialization at step 606 a pixel with maximum value and a pixel with minimum value are determined. At step 608 the value of the selected pixel is compared with minimum and maximum value pixel within the window.
Upon comparison if the value of selected pixel is not within the minimum and the maximum value pixel within the window the size of window is increased by including all pixels adjacent to the window. This step is performed until the value of selected pixel is within the minimum and the maximum value pixel
Once the value of selected pixel is within the minimum and the maximum value pixel the following steps are performed.
A median of the input image is calculated. Median need to be computed in each window only but each window is made to slide over all the pixels in image in a raster scan manner.
The median of image is represented as med xk. Once the median is calculated weighting of the median value is calculated to obtain weighted median value ak as exp{ -alpha * median xk - xi j } where alpha is image parameter selected on the basis context whether it is low light image or other type of image and xi j is center pixel value of the window in the given image. Then finally an intermediate image is calculated using the weighted median value of the image as medxk *ak. The intermediate image is smoothened image free of impulsive noise.
Figure 8 illustrates a flowchart for implementing guided image filtering in accordance with an embodiment of the present disclosure.
The guided image filtering process is an image filtering technique which takes two inputs an input image that needs to be enhanced and filter coefficients for processing the image. In one embodiment the filter coefficients are not fixed and are determined using a guiding image. In the present invention the guiding image can either be the input image itself or the intermediate image obtained after an adaptive windowed median filtering enhancement process.
The general guided image filter comprises of following processes:
The input image is accessed in a raster scan manner and the following operation is performed at each pixel location in a raster scan manner:
Step 1: Filter coefficients ak and bk are computed by selecting a neighborhood window size w such that its center coincides with a considered pixel position. Then the required filter coefficient is computed using pixel encompasses this window using the following expression:
wherein
win & | win | are window size and number of pixels inside the window win
Ii is intensity value at position and may consist of color components rgb also
s is variance value of pixels inside window
is intermediate image intensity value at position i
is arithmetic mean of all intermediate image p inside window win
is image parameter and
µ is mean value inside window
Step 2: A constant variance threshold is pre-selected based on the context of input image (It is intermediate image obtained after an adaptive windowed median filtering) and compared with the actual variance inside window. If the variance inside window is greater than the variance threshold then the center pixel of the window is retained as it is. Otherwise the pixel value is multiplied with averaged ak value and added with coefficient bk value for that particular pixel.
The method in Figure 8 follows a pixel-wise operation which is efficient and also follows different implementation structures that brings pipeline parallelization structure. This helps in avoiding the performance of method sequentially in raster scan manner.
The guided image filtering technique of the present invention is described as follows:
The first step in guided image filtering operation is initialization at step 802. Firstly plurality of parameters is initialized. The parameters includes regularization parameter epsilon (typical epsilon = 0.1) image breadth image width and a predefined threshold. In one embodiment the predefined threshold is 0.0003=0.1* 0.003. Then the intermediate image which is the image obtained from adaptive weighted median filter is input to the guided image filter. In one embodiment the acquired image is also input along with intermediate image. After initialization a white image W is formed of the same size as the input image.
At step 804 an image Y is formed by pixel wise squaring the input image. At step 806 a box filter is applied on W Y and the input image separately.
At step 808 the above box filtered input image is scaled and pixel-wise squaring is done on the image Y with the corresponding pixels in the image W.
Then a variance V is computed as normalized image. After that filter coefficients ak and bk are computed using the acquired image or the intermediary image. These filter coefficients are computed for filtering the image. The computation of V ak and bk is done pixel wise.
At step 810 a box filter is applied to obtain ak = Boxfilter (ak) and bk = Boxfilter (bk). Further at step 812 average values of ak and bk are computed by performing pixel-wise operation.
At step 814 if V is greater than the predefined threshold then the pixel values are not altered. Otherwise if V is less than the predefined threshold pixel an enhanced image is computed as follows:
x i j =
where and are average values of and respectively computed at step 812. The enhanced image retains the discontinuities and edges in the image.
In an exemplary embodiment a selected portion of the image can be enhanced with only guided image filtering and remaining portions of the image can be enhanced with the adaptive weighted median filtering followed by the guided image filtering.
The adaptive weighted median filter removes impulsive or camera sensor noise and the guided image filter retains the discontinuities or edges of the images.
Figure 9 illustrates a block diagram of adaptive guided image filtering technique in accordance with one embodiment of the present disclosure.
In an embodiment the filtering technique comprises an adaptive weighted median filter 402 an adaptive guided image filter 404 and an adaptive data selection module 902. In the illustrated embodiment the filter coefficients provided to the guided image filter 404 are varied based on the various conditions set in the adaptive data selection module 902. Initially an image is input to the adaptive weighted median filter 402. The adaptive weighted median filter 402 processes the inputted acquired image 406 and outputs an intermediate image 408. The intermediate image 408 is a smoothened image from which impulsive noise has been removed. In order to bring back the edges and discontinuities the intermediate image 408 is input to the guided image filter 404. Simultaneously the acquired image 406 is also input to the guided image filter 404. The guided image filter 404 derives filter coefficients from the acquired image 406 and the adaptive data selection module 902 and then processes the intermediate image 408 to output a final image 410.
Similarly figure 10 illustrates a block diagram of adaptive guided image filtering technique in accordance with one embodiment of the present disclosure. In the illustrated embodiment the filtering technique comprises an adaptive weighted median filter 402 an adaptive guided image filter 404 and an adaptive data selection module 902. According to this embodiment of the present disclosure an image is input to the adaptive weighted median filter 402. In an embodiment the acquired image 406 is taken as input image. The adaptive weighted median filter 402 processes the acquired image 406 and outputs an intermediate image 408. This intermediate image 408 is then provided as input to the guided image filter 404. The filter coefficients required for filtering the image by the guided image filter 404 are also derived from the intermediate image 408. The filter coefficients provided to the guided image filter 404 are varied based on the various conditions set in adaptive data selection module 902. The intermediate image is then processed to output a final image 410. The contrast of the final image 410 is enhanced and the edges of the image are preserved.
In an embodiment the edge preserving image enhancement technique is enhanced by two processes performed by the adaptive data selection module 902 namely data adaptive guided image filtering process and window size adaptive guided image filtering process.
The data adaptive guided image filtering process performed by adaptive data selection module 902 is formulated by introducing an offset value to the guiding image that is used as filter coefficient on basis of mean computation in the selected window. The required filter co-efficient a_k is computed in adaptive manner with an introduction of offset value ?? as mentioned below:
a_k=(1/win ?_(i?win)^n¦?(I_i-?_i ) p_i-µp ¯ ?)/(s^2-?)
Where ?? is offset is determined in the following different strategies.
Ii = guiding image at ith pixel value
win = selected window
Strategy 1:
?= {¦(Max (win) ?I>0@Min(win) ?I<0 @ 0 ?I=0 )¦
where ?I=(I_i-µ) mean removed guiding image pixel value
Strategy 2:
?= {¦(Max (win) ?I>0@Median(win) ?I<0 @ 0 ?I=0 )¦
where ?I=(I_i-µ) mean removed guiding image pixel value
Strategy 3:
?= {¦(Median(win) ?I>0 @0 ?I=0)¦
where ?I=(I_i-µ) mean removed guiding image pixel value
max (win) = maximum pixel value of selected window (win)
min(win) = minimum pixel value of selected window (win)
median(win) = median pixel value of selected window (win)
In an alternate embodiment of the present disclosure the offset value can be taken as zero. In this embodiment the system of Figure 9 will function as system of Figure 4. And system of Figure 10 will function as system of Figure 5.
In one embodiment of the present invention the size of the selected window (win) can be predetermined and fixed.
In another embodiment of the present invention the size of the selected window (win) can be varied based on each pixel location and image characteristics. For adaptive window size an adaptive window size selection is performed by the adaptive data selection module 902. The window selection is performed by an adaptive procedure that exploits the local window variance such that the noise and smooth portion of the images are accounted.
In the embodiment instead of choosing fixed window win while computing filter coefficients a_k and b_k an adaptive procedure is used to select optimal size window ?win?_o out of several sizes of windows. In an exemplary embodiment the windows is denoted by ?win?_i where the size of window starts from 3x3. i.e. i=3 5 … etc. The window size is denoted by ixi with local window variance of ?win?_i denoted by s_i respectively.
The following steps are performed in adaptive way at each pixel location to arrive at an optimal window size ?win?_o
Initially select a window win_3 with a size 3x3 and compute local window variance s_3 by considering the pixels insidewin_3 where i=3 and set s=0 and set Threshold.
Perform the following steps to select optimal window size ?win?_o as ?win?_i until (?s
| # | Name | Date |
|---|---|---|
| 1 | 3740-CHE-2012-AbandonedLetter.pdf | 2019-07-30 |
| 1 | Form-5.pdf | 2012-09-14 |
| 2 | Form-3.pdf | 2012-09-14 |
| 2 | 3740-CHE-2012-FER.pdf | 2019-01-21 |
| 3 | Form-1.pdf | 2012-09-14 |
| 3 | abstract3740-CHE-2012.jpg | 2013-12-02 |
| 4 | 3740-CHE-2012 FORM-18 08-01-2013.pdf | 2013-01-08 |
| 4 | Drawings.pdf | 2012-09-14 |
| 5 | 3740-CHE-2012 CORRESPONDENCE OTHERS 08-01-2013.pdf | 2013-01-08 |
| 5 | 3740-CHE-2012 FORM-3 27-09-2012.pdf | 2012-09-27 |
| 6 | 3740-CHE-2012 CORRESPONDENCE OTHERS. 08-01-2013.pdf | 2013-01-08 |
| 6 | 3740-CHE-2012 CORRESPONDENCE OTHERS 27-09-2012.pdf | 2012-09-27 |
| 7 | 3740-CHE-2012 FORM-1 08-01-2013.pdf | 2013-01-08 |
| 8 | 3740-CHE-2012 CORRESPONDENCE OTHERS. 08-01-2013.pdf | 2013-01-08 |
| 8 | 3740-CHE-2012 CORRESPONDENCE OTHERS 27-09-2012.pdf | 2012-09-27 |
| 9 | 3740-CHE-2012 CORRESPONDENCE OTHERS 08-01-2013.pdf | 2013-01-08 |
| 9 | 3740-CHE-2012 FORM-3 27-09-2012.pdf | 2012-09-27 |
| 10 | 3740-CHE-2012 FORM-18 08-01-2013.pdf | 2013-01-08 |
| 10 | Drawings.pdf | 2012-09-14 |
| 11 | abstract3740-CHE-2012.jpg | 2013-12-02 |
| 11 | Form-1.pdf | 2012-09-14 |
| 12 | Form-3.pdf | 2012-09-14 |
| 12 | 3740-CHE-2012-FER.pdf | 2019-01-21 |
| 13 | Form-5.pdf | 2012-09-14 |
| 13 | 3740-CHE-2012-AbandonedLetter.pdf | 2019-07-30 |
| 1 | searchstrategy_19-12-2018.pdf |