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.

Other comm<strong>on</strong> operators include Prewittoperator, Sobel operator, and Laplace operator. Asshown in Figure 3, it is indicated from the four edgedetecti<strong>on</strong> experimental results that Laplace operatoris more affected by noise, Prewitt and Sobeloperator detecti<strong>on</strong> edge are wider and its accuracy islow, and Robert operator results turn up satisfactorily.(a) Laplace operator(c) Sobel operatorFigure 3 Images of four edge detecting algorithms2) Binary processingBinary processing makes the image pixel grayvalue either 0 or 255 <strong>with</strong> certain rules, so focusedareas are apart from background completely. Am<strong>on</strong>gbinary processing methods threshold segmentati<strong>on</strong> iseffective and easy to implement.(a) OTSU methodFigure 4 Binarizati<strong>on</strong> images of dropletSuppose <strong>on</strong>e image is defined as followingmapping: f x, yG, and x,yis the space coordinates,f x,yis the gray value <strong>on</strong> the positi<strong>on</strong> ofx, y, G is a positive integer set which denotes graylevels. Segment image <strong>with</strong> threshold T, the resultwould be x, y0,255, which is:f t(b) Prewitt operator(d) Roberts operator(b) Iterative methodf 255f ( x,y) T( x,y)t 0 f ( x,y ) T(6)Therefore, those pixels <strong>with</strong> gray value 255corresp<strong>on</strong>d to the objects and the others corresp<strong>on</strong>dto the background.The key of threshold segmentati<strong>on</strong> is how todetermine the optimal threshold value. As noises,such as facular noise, exist in water droplet image,segmentati<strong>on</strong> results <strong>with</strong> fixed threshold would beextensively affected by the noise. OTSU method anditerative method are the main methods to achieve theoptimal dynamic threshold value. As shown inFigure 4, when the gray value between object andbackground is close, OTSU method will lose theobject informati<strong>on</strong>, while iterative method resultsare better, so iterative method is adopted.The approach can be described as follows.Firstly, to calculate image gray value histogram,to select the median of the whole image gray rangeas an initial threshold T (suppose there are L gradesof gray value in all). Then to use T to segment image,this will generate two sets of pixels. G1 set is madeup of all pixels whose gray value is larger than orequal to T, and G2 set is made up of all the pixelswhose grey value is less than the T value. Calculatethe average gray value of all the pixels in G1 andG2:T 1 (cm m)cm, 2 (cm m)m0Tm0L1mT1L1cmmT1Sec<strong>on</strong>dly, to calculate the new thresholdT=0.5( 1+ 2); then to calculate the new averagegray value 1, 2<strong>with</strong> this new threshold, and to repeatthe steps above until the iterati<strong>on</strong> value is equalto T.3.3 C<strong>on</strong>tour extracti<strong>on</strong>1) Thinning of binary imageThinning algorithm is stripping the border pixelsfrom binary image repeatedly, until the width ofborder turns to a pixel. During thinning processing,the c<strong>on</strong>nectivity of the object must be maintained.Thinning algorithm deployed in this paper isiterative algorithm for extract skelet<strong>on</strong>. It's a methodto judge if a border point should be eliminated fromthe binary structural c<strong>on</strong>tour according to therelati<strong>on</strong>ship <strong>with</strong> adjacent points, to realize c<strong>on</strong>tourthinning.Iterative algorithm is as follows: Firstly, it needsto detect the whole image, and to search the structuralelements p1 to compute n(p1) and s(p1).Judging by the following four c<strong>on</strong>diti<strong>on</strong>s:C<strong>on</strong>diti<strong>on</strong> 1: 2 n ( p1 ) 6 If p1 <strong>on</strong>ly has <strong>on</strong>eneighborhood point, p1 is pixels string’s end point,can’t be deleted. If p1 has seven neighborhoodpoints, to delete p1that will delete <strong>on</strong>e regi<strong>on</strong> willlead a secti<strong>on</strong> split.C<strong>on</strong>diti<strong>on</strong> 2: s (p1) = 1. If there have more than<strong>on</strong>e adjacent point transiti<strong>on</strong> 0 to 1, delete p1 willlead a secti<strong>on</strong> split.C<strong>on</strong>diti<strong>on</strong> 3: p 2 p4 p6 0 .C<strong>on</strong>diti<strong>on</strong> 4: p 8 p4 p6 0 .If four c<strong>on</strong>diti<strong>on</strong>s are met, as said p1 locates inthe West, North or Southeast border of the objects asInternati<strong>on</strong>al Journal of Intelligent Engineering and Systems, Vol.2, No.2,2009 21

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

Saved successfully!

Ooh no, something went wrong!