Based on fuzzy automata theory, this invention describes a novel method that retrieves the original intact characteristics of images heavily polluted by Gaussian impulse noises. The characteristics are represented with fuzzy sets whose membership functions are used for noise removal, multi-level thresholding, segmentation, edge detection, and other image analysis operations. The image results after the first phase (Phase I) processing including noise removal and multi-level thresholding are used for further removal of corrupted spots and for further analyses, and these further operations are called the second phase (phase II) image processing. After the second phase processing, the result image becomes much clear according to not only the feeling of subjective eyesight but also the objective and evident increasing of SNR and PSNR values. At the same time, we obtain the images of multi-level thresholding, segmentation, and edge detection. These result images then contain enough useful information for analyses in fields such as medical diagnosis, image compression, image recognization, . . . , etc.
Image is the most effective and most direct way to communicate. Nowadays, image transportation is widely and commonly applied in medicine, security, space, and many other sciences. However, due to much kind of possible defects of transportation media, communication channel, imaging facility, and/or failure of compression and storage, a clean image could be heavily corrupted by noises. Due to loss of much important information, the corrupted image is useless and loses its value in any industrial application. Before presenting the image to a user, we need to recover its information for analysis purposes such as multi-level thresholding, edge detection, and image segmentation. In image processing area, there are many filtering methods for noise removal such as low pass filters, median filter, weighted median filters (WM, Browrigg, 1984), center weighted median filter (CWM, Ko and Lee, 1991), and adaptive weighted fuzzy mean filters (AWFM, Kuo and Lee, 2000). Most of these methods apply only one-pass noise removal. After single pass noise removal, there are still large amount of corrupted spots in the image. For example, in sorting based filters, when the noise ratio is higher than 30%, being median gray level in the sample window, a noisy pixel is regarded as intact and will be filled back to the center of the sample window. Therefore, the median operation could further destroy the image by using many noisy pixels as operands. For the case in AWFM filters, the gray levels are partitioned into fixed three classes—Dark, Median, and Bright. The number of classes and distribution of gray levels in each class are fixed and are not adaptively obtained according to the characteristics of the corresponding image under processing. Thus, the result of WFM filters will be unacceptable when the gray levels of an image cannot be partitioned into three classes. This invention adaptively and automatically retrieves characteristics of each image under processing and clean up heavy noises by two-phase processing scheme. The second phase processing utilizes the result of the first phase to produces stable and the best result among the state-of-art filters.
In the field of image analysis, the primary processing operations are thresholding, segmentation, and edge detection. This invention not only filters out image noises but at the same time also performs the operations in these analyses. For highly polluted images such as those having noise ratio higher than 30%, there have not been methods to pursue thresholding, segmentation, and edge detection at low costs in both time and space complexity. Therefore, the invention does make a great advance in image analysis.
The invention primarily targets a noise filtering and analyses of thresholding, segmentation, and edge detection for heavily corrupted images by using a two-phase processing scheme. In addition to recovering clean image most close to the original and performing essential analyses, the processing time and the memory space costs are dramatically reduced compared with state-of-art methods.
The primary feature of this invention is to provide a two-phase image-processing algorithm. In the first phase the algorithm produces histogram of the corrupted image and according to the histogram automatically generate fuzzy partitions and their corresponding membership functions represented by LR parameters. The LR parameters representing an LR fuzzy set (α, m, β)LR are the left spread α, the mean m, and the right spread β. With the automatically generated fuzzy partitions and their corresponding membership functions, the algorithm filters the corrupted image and produces the Phase-I multi-level thresholded image. In the second phase processing, the algorithm re-samples the image results of the first phase. In the sample window, the algorithm compares the center pixel with its surrounding ones to determine whether the center pixel is corrupted and takes the median gray level of the intact pixels in the sample window as a new center pixel.
(a) Baboon original image
(b) Baboon image with additive 70% Gaussian impulse noise of mean length 150.
(c) Baboon image filtered with the MEDIAN Filters.
(d) Baboon image filtered with the WFM Filter.
(e) Baboon image filtered with the Phase I AMFG Filter.
(f) Baboon image filtered with the Phase II AMFG Filter.
(a) Baboon image thresholded after filtering of WFM Filter.
(b) Baboon image thresholded after filtering of Phase I AMFG Filter.
(c) Baboon image thresholded after filtering of Phase II AMFG Filter.
(d) Edge detection of the Baboon image after WFM Filter
(e) Edge detection of the Baboon image after Phase I AMFG Filter.
(f) Edge detection of the Baboon image after Phase II AMFG Filter.
(a) Lenna original image
(b) Lenna image with additive 70% Gaussian impulse noise of mean length 150.
(c) Lenna image filtered with the MEDIAN Filters.
(d) Lenna image filtered with the WFM Filter.
(e) Lenna image filtered with the Phase I AMFG Filter.
(f) Lenna image filtered with the Phase II AMFG Filter.
(a) Lenna image thresholded after filtering of WFM Filter.
(b) Lenna image thresholded after filtering of Phase I AMFG Filter.
(c) Lenna image thresholded after filtering of Phase II AMFG Filter.
(d) Edge detection of the Lenna image after WFM Filter
(e) Edge detection of the Lenna image after Phase I AMFG Filter.
(f) Edge detection of the Lenna image after Phase II AMFG Filter.
(a) Peppers original image
(b) Peppers image with additive 70% Gaussian impulse noise of mean length 150.
(c) Peppers image filtered with the MEDIAN Filters.
(d) Peppers image filtered with the WFM Filter.
(e) Peppers image filtered with the Phase I AMFG Filter.
(f) Peppers image filtered with the Phase II AMFG Filter.
(a) Peppers image thresholded after filtering of WFM Filter.
(b) Peppers image thresholded after filtering of Phase I AMFG Filter.
(c) Peppers image thresholded after filtering of Phase II AMFG Filter.
(d) Edge detection of the Peppers image after WFM Filter
(e) Edge detection of the Peppers image after Phase I AMFG Filter.
(f) Edge detection of the Peppers image after Phase II AMFG Filter.
(a) Boat original image
(b) Boat image with additive 70% Gaussian impulse noise of mean length 150.
(c) Boat image filtered with the MEDIAN Filters.
(d) Boat image filtered with the WFM Filter.
(e) Boat image filtered with the Phase I AMFG Filter.
(f) Boat image filtered with the Phase II AMFG Filter.
(a) Boat image thresholded after filtering of WFM Filter.
(b) Boat image thresholded after filtering of Phase I AMFG Filter.
(c) Boat image thresholded after filtering of Phase II AMFG Filter.
(d) Edge detection of the Boat image after WFM Filter
(e) Edge detection of the Boat image after Phase I AMFG Filter.
(f) Edge detection of the Boat image after Phase II AMFG Filter.
To achieve the analysis and filtering purposes and performance mentioned above, we depict the proposed techniques by using the following illustrated examples with figures.
In the field of image processing, the filtering is similar to that in communication. Both of them in turns sample the input, perform operation, filtering or processing, and then output the result. Commonly used sampling mechanism in image processing is to use a two-dimensional sample window to sample the image pixels in one dimension first. Each time the sample window moves one pixel along the dimension. As
This invention uses fuzzy inference for image processing as
This invention proposes the analyses of heavily corrupted images using fuzzy partitions in two-phases. We depict these two phases as follows:
1. Phase I
In the first phase filtering, according to the characteristics of the image under processing, the method automatically retrieves the parameters α, m, and β of the membership functions of the fuzzy partitions and then uses these membership functions to filter noises. The proposed filter is much superior to the sorting based filters and is also better than the weighted fuzzy mean filters, which adopt fixed membership functions. In addition, fuzzy partitions of the histogram also provide multi-level thresholds such that all gray levels in the same partition are assigned with a new representative gray level. That is, in addition to filtering, the Phase I multi-level thresholding is obtained at the same time.
Please refer to
Step 1. Generate the Histogram and Partition the Histogram into Coarse Sections.
Read the N-by-N (N×N) image pixels into array XA(i, j). Accumulate the number of appearance of each gray level x as the histogram hs(x). Drop the statistics of x if x is outside the interval [5, L−5], where L is the largest gray level. In this way most impulse noisy pixels will not taken into account for membership function parameters calculations. The first x with nonzero statistic is the start point hss, of the histogram and the final x with nonzero statistic is the end point hsf of the histogram.
To find out the fuzzy partitions of hs(x), we perform down-sampling of the histogram as equations (1) and (2), where v is the sampling reference value, cn is the number of cut section, cp is the number of gray levels in each section.
In this way we down sample the histogram into Cn levels.
Step 2. Find Out Local Minimum (Valley Point) and Local Maximum (Peak Point) of The Original Histogram.
Calculate the starting point chs(i) of each section i in hs(x) and the average value rhs(i) as (3) and (4).
Calculate each difference ro(i) between every two consecutive sections as (5).
ro(i)=rhs(i+1)−rhs(i) (5)
Between two peak points cM(i) and cM(i−1), find the accurate valley point cm(i) as (8).
Step 3. Calculate Parameters αi, mi, and βi of each Fuzzy Partition i as (9), (10), and (11) and Obtain the Corresponding Membership Functions.
The left spread parameter:
αi=cM(i)−cm(i) (9)
The mean parameter:
mi=cM(i) (10)
The right spread:
βi=cm(i+1)−cM(i) (11)
We use the LR fuzzy set (αi, mi, βi)LR to represent fuzzy partition i. Use sample window YA of size sh×sw to sample XA. The (h, w)-th sample window is as (12).
YA(i,j)=XA(i,j)
iε[h,h+(sh−1)]
jε[w,w+(sw−1)] (12)
Substitute YA(i, j) into membership function of the k-th fuzzy partition (αk, mk, βk)LR to obtain pixel YA(i,j)'s k-th membership grade μk(i,j) as (13).
where a⊖b=max(a−b, 0) and LR(x) is the reference function such as LR(x)=1⊖x.
Step 4. Calculate the Maximum Likelihood Estimator and the Weighted Mean.
Calculate the maximum likelihood estimator AVhw of pixels in sample window YA as (14). Summation of the multiplication of pixel YA(i, j) and weight μk(i, j) to obtain the weighted value wk,ux as (15). Divide wk,ux by wk,u as (16) and round the division to obtain the weighted mean wk,am as (17).
Step 5. Output the Filtering Result and Obtain the Thresholding.
Calculate the difference between the k-th weighted mean wk,am and the maximum likelihood estimator AVhw. Among wk,am's, find the one wk,gm closest to AVhw as (18). Assign OK(h, w) with wk,gm. Repeat Step 4 and Step 5 until all N×N pixels in image XA are sampled and processed. That is when h=N and w=N the matrix OK is the resultant image of the first phase filtering.
Perform thresholding over OK(h, w) and obtain the thresholded image TH(h, w) as (19).
(∀iεN−{1},cm(i)≦OK(h,w)<cm(i+1))[TH(h,w) =cM(i)] (19)
Matrix TH is the Phase I thresholded image.
2. Phase II
In the second phase processing, since the thresholded image TH from the first phase has much reduced gray level complexity, TH is used for judgment of whether a center pixel of a sample window is corrupted. When some surrounding pixels in the sample window have different gray level from the center pixel's, there are two expectances—the center pixel is either part of an edge segment or corrupted. In a sample window, the center pixel is compared with its surrounding ones. When the amount of pixels of the same gray level is less than a reference value Kt, it is regarded as part of a corrupted spot. The phase II algorithm replaces this pixel's gray level with the median of the non-corrupted ones in the sample window. Please refer to
Step 1. Read the Thresholded Image in the First Phase into a Matrix TH of size N×N.
Step 2. Sample Matrix TH with a Sample Window xd of Size n×n, For Matrix OK, we Also Use an n×n Sample Window xo for Pixel Scanning.
Step 3. Set the Reference Value Kt as Accumulating Threshold for Corruption Determination. Compare the Center Pixel of the Sample Window xd with the Surrounding Pixels One by One.
Step 4. Compare the Value of K with Kt.
Step 5. Find the Median Value of Uncorrupted Pixels in Sample Window xo.
Step 6. Replace the Center Pixel xo(I+┌n/2┐,J+┌n/2┌) with the Median Obtained in Step 5.
Step 7. Obtain the New Thresholded Image TH from OK as Previously Described in (19).
Step 8. Detect the Edge and Obtain the Edge Image Ed.
The above two-phase filtering is shown as
The above tables contain data of two phases' filtering results. A further processing called the Phase III can be performed by applying the same Phase II operations over the image again. We see that AMFG is stable since repeating Phase II operations will not reduce the performance. From the tables, the performance of Phase I is close to those of WFM but after Phase II, the performance is 3 to 4 dB better than those of WFM. Even 5 dB better performances can be found when the impulse mean strength is over 200.
In summary, this invention adopts two-phase image filter. In the first phase, most noises are removed. For noise ratio higher than 30%, there would be corrupted spots (a small region of corrupted pixels) left. To make the filtering result be much more close to the original intact image, we perform thresholding over the filtered image of the first phase and utilize the thresholded image for corruption determination of pixels and for further filtering of noises as well. According to the experiments, AMFG filter evidently increase the SNR and PSNR performances. Moreover, in addition to filtering, at the same time we can perform image analyses such as thresholding, edge detection, and image segmentation. The total time and spatial complexity of computation is as following table and we can find that they are much lower than those of the state-of-art analysis algorithms.
In the above complexity evaluation, finding thresholds in the histogram requires 10cn+8k2−4 memory accesses, L+15cn+6k2+3cp−7 additions, one division, 2 multiplications, and one floor operation. That is, the complexity of finding thresholds is of order O(L) which is much lower than state-of-art methods. With such a low cost as Tables 17 and 18, this invention effectively and efficiently performs image analyses such as thresholding, edge detection, and segmentation. This invention breaks through the dilemma that heavily corrupted images cannot be analyzed. Therefore, this invention can be widely applied in industries such as medical imaging, image compression, multimedia communications, space technology, . . . , etc. This invention possesses wide applicability and high industrial worth. Especially, the thresholded image TH in Phase I can also be replaced with result images from other thresholding algorithms and becomes the input of Phase II. This compatibility enlarges the application area. Therefore, this invention does achieve the objective and there is no other similar methods found in open area. This invention meets the required criteria to apply for the patent.
Number | Date | Country | |
---|---|---|---|
20070053588 A1 | Mar 2007 | US |