jyoti chauhan et al, / (ijcsit) international journal of ... 2/vol2issue4/ijcsit2011020425.pdf ·...

5
Abs dom int sce com ma Fu und fea on Th fuz det red but imp noi alo con pro num Key noi fun I. A. An sto me pro con has pro Im thr En Im Vo am res or app pho deg Im Th im act stract— Digita main wherein egers, called p ene radiance, mputer or othe athematical fra zzy image pro derstand, repr atures as fuzzy the selected fu his paper com zzy logic. This tection and rem ducing all kind t also very ef pulse noise. T ise with the p ong with imp nsidered as t ocessing. Thes merical measu ywords- Fuzzy ise, edge prese nctions, noise INTRODUCTIO Image Proc n image is di ored in a com edia such as ocedure can nnected to fra s been digitiz ocessing opera mage processin ree major nhancement an mage Internat olume(3), Issu mount of mem storation is the estimated, d pearance. Ima otography or graded, but n mage enhancem he main advan ages. Remov tive research a Fi C al image proce n the image is pixels, represe stored in a d er digital hard amework to de ocessing [4] is t resent and pro y sets. The rep uzzy techniqu mbines the feat research prob moval Method ds of impulse n ffective for re his paper focu reservation of proving the c the one of th se results are ures and visual y filter, image erving filtering reduction. ON cessing gitized to con mputer memo s hard disk be done by ame grabber b zed, it can be ations. ng operations categories, nd Restoratio tional Journa ue(5) 196 com mory needed e process of ta degradation, age restoratio r publication need to be im ment is improv ntage of IE i ving or reduci area in the fiel ilter fo b Computer Scie essing is a sub s converted t enting a physi digital memor ware. Fuzzy lo eal with uncert the collection o ocess the image presentation an e and on the p tures of Imag blem deals with d (FIDRM), esp noise. FIDRM educing little a uses on the re f edge sharpne contrast of th he most diffi also compare l inspection. processing, im g, fuzzy image nvert it to a ory or on som or CD-ROM y scanner, or oard in compu operated upo [1] can be r Image Co on and Meas al of Image mpression invo to store a d aking an imag and restoring on is often u where an im mproved befor ving an image s in the remo ing noise in d of DIP. or Rem by Usin Jyoti ence & Engine bset of the ele o an array o ical quantity ry, and proces ogic represents tainty of infor of all approach es, their segme nd processing problem to be ge Enhanceme h Fuzzy impul pecially develo is not only ve as well as ver moval of the i ess and image he images w cult tasks in ed to other fil mpulse noise, A filtering, mem form which me form of M. This digit r by video uter. Once the on by various roughly divid ompression, surement Extr Processing olves in reduc digital image. ge with some k g it to its o used in the f mage was som re it can be p e visually. oval of noise the images moval o ng Fuz Chauhan, Dr. eering,Manav Faridabad, I ectronic of small such as ssed by s a good mation. hes that ents and depend solved. ent and se noise oped for ery fast, ry high impulse e details which is image lters by Additive mbership can be storage tization camera e image s image ded into Image raction. (IJIP) cing the Image known, original field of mehow printed. e in the is very B. Im inf sca fil de by flu un so Th sh is im Fig co No co be pix ba pix Fig C. Th eff im fre 1. 2. 3. II. In stu tec ca of Impu zzy Lo S.S. Tyagi Rachna Inter India Noise in Im mage noise is formation in i anner or digi m grain and i etector. Image y-product of uctuations be nwanted sound me applicatio he impulse n harp, sudden d randomly sca mage. g. 1 shows orrupted with s oise filtering orrupted image e viewed. Noi xel in the im ased rules. Ide xel to pixel ba (a) gure. 1: Noise Objectives he objective o ficient solutio mages. The ma ee pixels must Removal of th Noise free pix Edges must b PROPOSED literature sev udied [2] [3] chniques are o an contribute ulse N ogic rnational Univ mages s the random images produc ital camera. I in the unavoid e noise is gen image capt ecame known d, they are in ons, such as di oise (or salt disturbances in attered white an original salt and peppe can be viewe e and smoothe ise filtering c mage with a ne eally, the filte ased on the loc in Images (a) O of the paper i on for remov ain point und t remain unch he noise from xels must rem be preserved. WORK veral (fuzzy ] [5] [6] for often complem to the dev Noise versity variation of ced by the sen Image noise c dable shot noi nerally regard ture. Althoug n as "noise" naudible and a thering. and pepper n the image s or black (or b image and t er noise. ed as removin en it so that th can be viewed ew value dep ering algorith cal context. Original Imag is to give a n ing the noise der considerati anged. The m m the test imag main unchange and non-fuzz impulse noi mentary to exi velopment of brightness o nsor and circui can also origi se of an ideal ed as an und gh these un " by analog actually benef noise) is cau signal; its app both) pixels o the image w ng the noise fr he original im d as replacing pending on th hm should var (b) e (b) Image wi ew better, fas e from the co ion is that the main focus will ge. ed. zy) filters hav ise reduction. isting techniq f better and or color itry of a inate in l photon esirable nwanted gy with ficial in used by pearance over the which is rom the mage can g every he fuzzy ry from ith noise ster and orrupted e noise- l be on: ve been . These ques and robust Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 2 (4) , 2011, 1489-1493 1489

Upload: others

Post on 05-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Jyoti Chauhan et al, / (IJCSIT) International Journal of ... 2/vol2issue4/ijcsit2011020425.pdf · Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information

AbsdomintscecommaFuundfeaon Thfuzdetredbutimpnoialoconpronum Keynoifun

I.

A. AnstomeproconhasproImthrEnImVoamresor appphodegImThimact

stract— Digitamain whereinegers, called p

ene radiance, mputer or otheathematical frazzy image proderstand, repr

atures as fuzzythe selected fu

his paper comzzy logic. This tection and remducing all kindt also very efpulse noise. Tise with the p

ong with impnsidered as tocessing. Thesmerical measu

ywords- Fuzzyise, edge presenctions, noise

INTRODUCTIO

Image Procn image is diored in a comedia such asocedure can nnected to fras been digitizocessing opera

mage processinree major nhancement an

mage Internatolume(3), Issu

mount of memstoration is the

estimated, dpearance. Imaotography orgraded, but n

mage enhancemhe main advanages. Removtive research a

Fi

C

al image procen the image ispixels, represestored in a d

er digital hardamework to deocessing [4] is tresent and proy sets. The repfuzzy techniqu

mbines the featresearch prob

moval Methodds of impulse nffective for rehis paper focureservation of

proving the cthe one of thse results are ures and visual

y filter, image erving filteringreduction.

ON cessing gitized to con

mputer memos hard disk

be done byame grabber bzed, it can be ations. ng operations

categories, nd Restoratio

tional Journaue(5) 196 commory needed e process of tadegradation, age restoratio

r publication need to be imment is improvntage of IE i

ving or reduciarea in the fiel

ilter fob

Computer Scie

essing is a subs converted tenting a physidigital memorware. Fuzzy loeal with uncertthe collection o

ocess the imagepresentation ane and on the ptures of Imag

blem deals withd (FIDRM), espnoise. FIDRMeducing little auses on the ref edge sharpnecontrast of thhe most diffialso compare

l inspection.

processing, img, fuzzy image

nvert it to a ory or on som

or CD-ROMy scanner, oroard in compuoperated upo

[1] can be rImage Co

on and Measal of Image

mpression invoto store a d

aking an imagand restoring

on is often uwhere an im

mproved beforving an images in the remoing noise in d of DIP.

or Remby Usin

Jyoti ence & Engine

bset of the eleo an array oical quantity

ry, and procesogic representstainty of inforof all approaches, their segmend processing problem to be ge Enhancemeh Fuzzy impulpecially develo is not only veas well as vermoval of the iess and imagehe images wcult tasks in

ed to other fil

mpulse noise, Afiltering, mem

form which me form of

M. This digitr by video uter. Once theon by various

roughly dividompression, surement Extr Processing

olves in reducdigital image. ge with some kg it to its oused in the fmage was somre it can be pe visually. oval of noisethe images

moval ong FuzChauhan, Dr.

eering,Manav Faridabad, I

ectronic of small such as ssed by s a good mation. hes that ents and depend solved.

ent and se noise

oped for ery fast, ry high impulse

e details which is

image lters by

Additive mbership

can be storage tization camera

e image s image

ded into Image

raction. (IJIP)

cing the Image

known, original field of mehow printed.

e in the is very

B.IminfscafildebyfluunsoThshis imFigcoNocobepixbapix

FigC.Theffimfre1. 2. 3.

II.

In stutecca

of Impuzzy Lo

S.S. Tyagi Rachna Inter

India

Noise in Immage noise isformation in ianner or digim grain and i

etector. Imagey-product of uctuations benwanted soundme applicatio

he impulse nharp, sudden d

randomly scamage.

g. 1 shows orrupted with soise filtering

orrupted imagee viewed. Noixel in the im

ased rules. Idexel to pixel ba

(a) gure. 1: Noise Objectives

he objective officient solutiomages. The maee pixels mustRemoval of thNoise free pixEdges must b

PROPOSEDliterature sev

udied [2] [3]chniques are o

an contribute

ulse Nogic

rnational Univ

mages s the random images producital camera. Iin the unavoide noise is gen

image captecame knownd, they are in

ons, such as dioise (or salt

disturbances inattered white

an original salt and peppecan be viewee and smootheise filtering c

mage with a neeally, the filteased on the loc

in Images (a) O

of the paper ion for removain point undt remain unchhe noise fromxels must rem

be preserved.

WORK veral (fuzzy ] [5] [6] for often complem

to the dev

Noise

versity

variation of ced by the senImage noise cdable shot noinerally regardture. Althougn as "noise"

naudible and athering. and pepper

n the image sor black (or b

image and ter noise. ed as removinen it so that thcan be viewedew value depering algorithcal context.

Original Imag

is to give a ning the noise

der consideratianged. The m

m the test imagmain unchange

and non-fuzzimpulse noi

mentary to exivelopment of

f brightness onsor and circuican also origise of an idealed as an undgh these un" by analogactually benef

noise) is causignal; its appboth) pixels o

the image w

ng the noise frhe original imd as replacing

pending on thhm should var

(b) e (b) Image wi

ew better, fase from the coion is that the

main focus willge. ed.

zy) filters havise reduction.isting techniqf better and

or color itry of a inate in l photon esirable

nwanted gy with ficial in

used by pearance over the

which is

from the mage can

g every he fuzzy ry from

ith noise

ster and orrupted e noise-l be on:

ve been . These

ques and robust

Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 2 (4) , 2011, 1489-1493

1489

Page 2: Jyoti Chauhan et al, / (IJCSIT) International Journal of ... 2/vol2issue4/ijcsit2011020425.pdf · Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information

methods. Impulse noise is caused by errors in the data transmission generated in noisy sensors or communication channels, or by errors during the data capture from digital cameras. Noise is usually quantified by the percentage of pixels which are corrupted. Removing impulsive noise while preserving the edges and image details is the difficult issue. Traditionally, IE techniques such as mean and median filtering have been employed in various applications in the past and are still being used. Although these techniques remove the impulsive noise but they were unable to preserve the sharpness of the edges. They smooth the noise as well as the edge sharpness. They were unable to improve the contrast of the image. A fuzzy theory based IE avoids these problems and is a better method than the traditional methods. The proposed filter provides an alternative approach in which the noise of colored image is removed and the contrast is improved. To achieve a good performance, a noise reduction algorithm should adapt itself to the spatial context. Noise smoothing and edge enhancement are inherently conflicting processes, since smoothing a region might destroy an edge, while sharpening edges might lead to unnecessary noise. Many techniques to overcome these problems have been proposed in literature. In this thesis a new filter, based on the concepts of IE and FL have been introduced that not only smooth the noise but also preserves the edges and improve its contrast. The test images taken into consideration have impulse noise or salt and pepper noise. The noise intensity in the same test image varies as 5%, 7%, 9% and 10%. For each case the PSNR and Execution time is calculated. A. Removal of Impulsive Noise For each pixel (i, j) of the image (that isn’t a border pixel) we use a 3×3 neighborhood window. For each pixel position we have the gradient values. The two related gradient values for the pixel in each direction are given by the following table: TABLE 1. Basic and two related gradient values for each direction.

R basic gradients related gradients NW , 1, 1 , 1, 1 N , , 1 , , 1

NE , 1, 1 , 1, 1 E , 1, , 1,

SE , 1, 1 , 1, 1 S , , 1 , , 1

SW , 1, 1 , 1, 1 W , 1, , 1,

These values indicate in which degree the central pixel can be seen as an impulse noise pixel. The fuzzy gradient value , for direction R (R є {NW, N, NE, E, SE, S, SW, W}), is calculated by the following fuzzy rule: If | , | is large AND | ΄ , | is small OR | , | is large AND | ΄΄ , | is small OR | , | is big positive AND | ΄ , | AND | ΄΄ , | are big negative OR | , | is big negative AND | ΄ , | AND | ΄΄ , | are big positive

Then , is large. Where , is basic gradient and ΄ , and ΄΄ , are the two related gradient values for the direction

R. Because “large”, “small”, “big negative” and “big positive” are nondeterministic features, these terms can be represented as fuzzy sets. Fuzzy sets can be represented by a membership function. Examples of the membership functions LARGE (for the fuzzy set large), SMALL (for the fuzzy set small), BIG POSITIVE (for the fuzzy set big positive) and BIG NEGATIVE (for the fuzzy set big negative) When we get the gradient values we apply the similarity function. The similarity function is μ: [0 ;∞) →R. We will need the following assumptions for μ: 1. μ is decreasing in [0 ;∞), 2. μ is convex in [0 ;∞), 3. μ (0) = 1, μ (∞) = 0. In the construction, the central pixel in the window W is replaced by that one, which maximizes the sum of similarities between all its neighbors. Basic assumption is that a new pixel must be taken from the window W. Each of the neighbors of the central pixel is moved to the center of the filtering window and the central pixel is rejected from W. For each pixel of the neighborhood, which is being placed in the center of W, the total sum of similarities is calculated and then compared with maximum sum. The total sum of similarities is calculated without taking into account the original central pixel, which is rejected from the filter window. In this way, the central pixel is replaced by that pixel from the neighborhood, for which the total similarity function, which is a sum of all values of similarities between the central pixel and its neighbors, reaches its maximum. The filter tends to replace the original pixel only when it is really noisy and preserves in this way the image structures.

III. RESULTS

The test images are operated on different intensities of noise as 5%, 7%, 9%, and 11%. Different PSNR and evaluation time are calculated for each image with different noise intensities. The results are shown: A. Results of FIDRM

Fig. 2 Real Lena’s image

Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 2 (4) , 2011, 1489-1493

1490

Page 3: Jyoti Chauhan et al, / (IJCSIT) International Journal of ... 2/vol2issue4/ijcsit2011020425.pdf · Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information

a) Lena image corrupted b) Lena image corrupted

with 5% noise with 7% noise

c) Lena image corrupted d) Lena image corrupted

with 9% noise with 11% noise

Fig 3 Lena image corrupted with different impulse noise intensities

Histograms of noisy images of FIDRM

a) Histogram of 5% noisy image b) Histogram of 7% noisy image

c) Histogram of 9% noisy image d) Histogram of 11% noisy image

Fig.4 Histograms of four noisy images of Lena describe in Fig.3

respectively

Noise free images

a) Noise free image( 5% noise) b) Noise free image( 7% noise)

c) Noise free image( 9% noise) d) Noise free image( 11% noise)

Fig. 5 Images of Lena after filtered through one step FIDRM

B. Results of Two step FIDRM Reference image is same as described in fig. 2

a)Noisy image(5% Impulse noise) b)Noisy image(7% Impulse noise)

c)Noisy image(9% Impulse noise)d)Noisy image(11% Impulse noise) Fig. 6 Images corrupted by impulse noise of different intensites

Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 2 (4) , 2011, 1489-1493

1491

Page 4: Jyoti Chauhan et al, / (IJCSIT) International Journal of ... 2/vol2issue4/ijcsit2011020425.pdf · Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information

Histograms of Two step FIDRM

a) Histogram of noisy(5%) image b) Histogram of noisy(7%) image

c) Histogram of noisy(9%) image d) Histogram of noisy(11%) image Fig. 7 Histogram of impulse noise corrupted images in fig. 6

Noise free images

a) Noise free image(5% noise) b) Noise free image(7% noise)

c) Noise free image(9% noise) d) Noise free image(11% noise) Fig. 8 Two step filtered images corrupted by impulse noise

Table 2. Comparison of one step and Two step FIDRM (PSNR)

Noise 1 Step 2 Step 5% 37.97 38.89 7% 35.66 35.48 9% 33.88 33.13

11% 31.90 31.79 Table 3. Comparison of one step and Two step FIDRM (MSE)

Noise 1 Step 2 Step 5% 10.44 8.45 7% 17.76 18.52 9% 26.79 31.84

11% 42.24 43.38 Table 4. Comparison of one step and Two step FIDRM (Time taken)

Noise 1 Step 2 Step 5% 15.9 21.71 7% 17.0 23.23 9% 17.42 24.80

11% 16.78 24.87 From these results it is proved that Two step FIDRM is better than One step FIDRM in terms of picture quality, edge noise removal, PSNR ratio.These filters are also compared with conventional filters which are described in section 2.2. Their results in terms of PSNR(db) is compared with One step FIDRM and Two step FIDRM in Table 5. Table 5. Comparison with other conventional fillters Filters PSNR(db) Rank order mean filter 31.01 Progressive switching median filter 31.28 AWCM 34.77 Differential ranked impulse detector 36.01 Enhance ranked impulse detector 36.06 Tristate median filter 36.06 Two output filter 24.92 One step FIDRM 37.97 Two step FIDRM 38.89

IV. CONSLUSION & FUTURE WORK

Four parameters of a test window are supplied to a fuzzy membership function. Upon constructing the consequent membership function and subsequent defuzzification a decision is made on the noise status of the center pixel of the window. The restored images of these two schemes exhibit the desirable properties of edge and detail preservation. The inherent correlation among the pixels is exploited in these two schemes. However, it has a drawback of not making the threshold as adaptive.

Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 2 (4) , 2011, 1489-1493

1492

Page 5: Jyoti Chauhan et al, / (IJCSIT) International Journal of ... 2/vol2issue4/ijcsit2011020425.pdf · Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information

Various test images of different extensions are fed to the system. The images are corrupted with salt and pepper noise. The filter is seen to preserve intricate features of the image while removing heavy impulse noise where as the conventional mean and median filters fail in this context even at low corruption levels. The learning of fuzzy rules in a fuzzy image filter with a true hierarchical fuzzy logic structure where the output of the first layer is fed in to the second layer to obtain an ‘improved’ final output. The evaluation parameters PSNR and Evaluation time taken are evaluated. The program generates positive PSNR and is above 20dB which is considered to be the best ratio. The overall execution time which the program takes is approximately 15 seconds. In future, modification of fuzzy rules can produce better result.

V. REFERENCES [1] Gonzalez, R.C., Woods, R.E., Book on “Digital Image Processing”, 2nd Ed, Prentice-Hall of India Pvt. Ltd. [2] Carl Steven Rapp, “Image Processing and Image Enhancement”, Texas, 1996. [3] R. Vorobel, "Contrast Enhancement of Remotely-Sensed Images," in 6th Int. Conf. Math. Methods in Electromagnetic Theory, Lviv, Ukraine, Sept 1996, pp. 472-475. [4] Tizhoosh, “Fuzzy Image Processing”, © Copyright Springer, 1997. [5] Farzam Farbiz, Mohammad Bager Menhaj, Seyed A. Motamedi, and Martin T. Hagan, “A new Fuzzy Logic Filter for image Enhancement” IEEE Transactions on Systems, Man, And Cybernetics—Part B: Cybernetics, Vol. 30, No. 1, February 2000 [6] P. Fridman, "Radio Astronomy Image Enhancement in the Presence of Phase Errors using Genetic Algorithms," in Int. Conf. on Image Process., Thessaloniki, Greece, Oct 2001, pp. 612- 615.

Jyoti Chauhan received B.Tech degree in Information Technology from M.D.U in 2009 and is persuing M.Tech. in CSE. Her areas of interest are Image Processing, Mobile Ad hoc Networks. Dr. S. S. Tyagi received B.Tech in Computer Science and Engineering from Nagpur University and M.E from BITS, Pilani and Ph.D in Computer Science from Kurukshetra University, Kururkshetra. Presently, he is working as Professor in Computer Engineering department in Manav Rachna International University, Faridabad. His areas of interests are Wireless Security, Mobile Ad hoc Networks and Wireless Mesh Networks

Jyoti Chauhan et al, / (IJCSIT) International Journal of Computer Science and Information Technologies, Vol. 2 (4) , 2011, 1489-1493

1493