10.07.2015 Views

A New Diagnosis Method on Insulators with Measuring ... - inass

A New Diagnosis Method on Insulators with Measuring ... - inass

A New Diagnosis Method on Insulators with Measuring ... - inass

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

hood average, median filter, Gaussian filter, frequencydomain method and so <strong>on</strong>. Particularly,median filter is suitable for extracting water dropletc<strong>on</strong>tours from the image, which has the followingadvantages: ○1 to preserve edge details while removingthe impulse noise, salt and pepper noise at thesame time. ○2 to eliminate pulse effectively <strong>with</strong>outaffecting the step functi<strong>on</strong> and the slope functi<strong>on</strong>. ○3to avoid fuzziness <strong>on</strong> image detail resulted by thelinear filter under certain c<strong>on</strong>diti<strong>on</strong>s. ○4 computingprocess is c<strong>on</strong>venient <strong>with</strong>out need of the statisticalcharacteristics of images. Experimental results showthat the average templates and Gaussian templateboth blur image, especially the average template,while the median template can preserver edge detailbetter, as shown in Figure 2. So in practice we choosemedian filtering method.Detailed practice: to use a sliding window <strong>with</strong>odd point to slide <strong>on</strong> the image, to arrange the oddpixels <strong>with</strong> the pixel gray value, which are c<strong>on</strong>tainedin the window, from small to large; then to replacethe pixel gray value of the window centre <strong>with</strong> themiddle gray value in the order, to move the windowfrom left to right till reaching the border, then tomove to the next row, from left to right again and gothrough the whole image in this way. After themedian filter transformati<strong>on</strong>, some pixel’s grayvalue is equivalent to the middle value of the grayvalues in the neighborhood.(a) original image(c) Gaussian template filter(b) average template filter(d) median template filterFigure 2 Images of three kinds of filtering templates3) Gray stretchSince water is translucent liquid, the c<strong>on</strong>trastbetween water droplet image and its background istoo little to distinguish. In order to highlight dropletand suppress the background, piecewise lineartransformati<strong>on</strong> is adopted here.The gray value of the water droplet in the imageis lower than the background, and the whole imagehas a low gray value. Therefore the high graysecti<strong>on</strong> is compressed and the low gray secti<strong>on</strong> isstretched.To be simple, we can choose a gray value M,stretch the secti<strong>on</strong> where gray value is less than M,and turn the secti<strong>on</strong> where gray value is more thanM to the highest gray value totally. If f i, jdenotespixel gray value of the original image, g i,jdenotes the gray value after gray transform, thelinear transformati<strong>on</strong> functi<strong>on</strong> would be:M/ Mfi,j 0f i,j gMgi, j(2)MgM f i,jMg4) Image Rotati<strong>on</strong>According to the need of image processing thatfollowed, we hope that the water droplet in theimage is at the horiz<strong>on</strong>tal level <strong>on</strong> the whole in thepicture. As the incline angle <strong>on</strong> the insulator surfaceis about 15°, the whole image should be rotated by15°.3.2 Image segmentati<strong>on</strong>1) Edge detecti<strong>on</strong>The water droplet’s transparency makes theboundary between water droplet and its backgroundless obvious, particularly <strong>on</strong> the light side of theborder. To detect and highlight the edge of the waterdroplet is the premise of extracti<strong>on</strong> of water dropletc<strong>on</strong>tour accurately.Edges mainly divide into step shape and roofshape. The water droplet image is step edge wherethe edge points’ first-order derivative has extremevalue. So detecting edge points can be achieved bycalculating each pixel's gray gradient.The digital image’s first-order partial derivativeswould approximately be: f x f x1,yf x,y(3)f y f x,y 1f x,yTo simplify the calculati<strong>on</strong> of gradient, thefollowing approximate formula is used frequently:gradxy f x f y, (4)Generally, the gradient operator is sensitive inlevel or vertical directi<strong>on</strong> <strong>on</strong> the edge, while Robertsacross operator detects the gradient which crossal<strong>on</strong>g <strong>with</strong> the image coordinate axis 45° and 135°.The Operator is:gradx,y f f x y(5)f x,y f x 1,y 1 f x 1,y f x,y 1 Internati<strong>on</strong>al Journal of Intelligent Engineering and Systems, Vol.2, No.2,2009 20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!