999精品在线视频,手机成人午夜在线视频,久久不卡国产精品无码,中日无码在线观看,成人av手机在线观看,日韩精品亚洲一区中文字幕,亚洲av无码人妻,四虎国产在线观看 ?

Defect image segmentation using multilevel thresholding based on firefly algorithm with opposition-learning

2014-09-06 10:49:51ChenKaiDaiMinZhangZhishengChenPingShiJinfei
關鍵詞:實驗

Chen Kai Dai Min Zhang Zhisheng Chen Ping Shi Jinfei

(1Mechanical Engineering School, Southeast University, Nanjing 211189, China)(2Huaihai Institute of Technology, Lianyungang 222005, China)

?

Defect image segmentation using multilevel thresholding based on firefly algorithm with opposition-learning

Chen Kai1Dai Min1Zhang Zhisheng1Chen Ping1Shi Jinfei2

(1Mechanical Engineering School, Southeast University, Nanjing 211189, China)(2Huaihai Institute of Technology, Lianyungang 222005, China)

To segment defects from the quad flat non-lead (QFN) package surface, a multilevel Otsu thresholding method based on the firefly algorithm with opposition-learning is proposed. First, the Otsu thresholding algorithm is expanded to a multilevel Otsu thresholding algorithm. Secondly, a firefly algorithm with opposition-learning(OFA) is proposed. In the OFA, opposite fireflies are generated to increase the diversity of the fireflies and improve the global search ability. Thirdly, the OFA is applied to searching multilevel thresholds for image segmentation. Finally, the proposed method is implemented to segment the QFN images with defects and the results are compared with three methods, i.e., the exhaustive search method, the multilevel Otsu thresholding method based on particle swarm optimization and the multilevel Otsu thresholding method based on the firefly algorithm. Experimental results show that the proposed method can segment QFN surface defects images more efficiently and at a greater speed than that of the other three methods.

quad flat non-lead (QFN) surface defects; opposition-learning; firefly algorithm; multilevel Otsu thresholding algorithm

The quad flat non-lead (QFN) package is a type of flat no-lead package that has been widely used. However, on the surface of the QFN package, there are different types of defects which are harmful to the quality of the QFN package. The defects are relatively small, so it is difficult to segment the defects from the surface image with a single threshold. Therefore, multilevel image segmentation is applied to segmenting QFN surface defects from the QFN board.

The Otsu thresholding segmentation algorithm[1]is a classical and efficient image segmentation algorithm. In the case of segmenting several objects from the background, Otsu thresholding needs to be extended to multilevel Otsu thresholding segmentation. However, multilevel Otsu thresholding segmentation is time-consuming and involves large computation. Thus, several meta-heuristics optimal algorithms have been introduced to solve the problems. Yin[2]presented an optimal thresholding using genetic algorithms. Ghamisi et al.[3]developed a fractional-order Darwinian particle swarm optimization and the Darwinian particle swarm optimization for determining thresholds. Gao et al.[4]designed an ant colony optimization segmentation algorithm for solving multilevel Otsu problems. Sathya and Kayalvizhi[5]introduced a bacterial foraging algorithm into finding thresholds.

Recently, Yang[6]presented a new meta-heuristic algorithm, called the firefly algorithm. Due to the good performance on global search, the firefly algorithm has been widely used for solving optimization problems. Horng et al.[7]proposed a multilevel minimum cross entropy threshold selection based on the firefly algorithm, and demonstrated that the firefly algorithm outperformed the particle swarm optimization (PSO) and the quantum particle swarm optimization. Hassanzadeh et al.[8]applied the firefly algorithm to Otsu’s method. Nevertheless, in some cases, the firefly algorithm may easily fall into a local optimum which will lead to inappropriate results and slow convergence.

Hence, a novel firefly algorithm with opposition-learning is proposed to help fireflies escape from the local optimum and a multilevel Otsu thresholding based on the firefly algorithm with opposition-learning is applied to segmenting QFN surface defects.

1 Multilevel Otsu Thresholding Algorithm

σ2=ω1(μ1-μT)2+ω2(μ2-μT)2

(1)

In the situation of complex or multi-target image segmentation, an image needs to be classified intojclassesC1,C2,…,Cjwith the set of thresholdst1,t2,…,tj-1. Otsu thresholding should be expanded to multilevel Otsu thresholding. The between-class variance in multilevel Otsu thresholding can be defined by

(2)

where

(3)

(4)

Clearly, the multilevel Otsu thresholding algorithm is time-consuming and involves a large computation. Hence, the firefly algorithm with opposition-learning is proposed to solve the multilevel Otsu thresholding problem in the next section.

2 Multilevel Otsu Thresholding based on Firefly Algorithm with Opposition-Learning

2.1 Opposition-learning algorithm

(5)

(6)

2.2 Firefly algorithm with opposition-learning

The firefly algorithm[6]is a new meta-heuristic algorithm for optimization. In the firefly algorithm, there are three idealized rules: 1) All the fireflies are unisex so that one firefly is attracted to other fireflies regardless of their sex; 2) Attractiveness is proportional to their brightness; thus for any two flashing fireflies, the less brighter one moves towards the brighter one. If there is no brighter one than a particular firefly, it will move randomly; 3) The brightness of a firefly is affected or determined by the landscape of the objective function to be optimized. The movement of fireflyiattracted to another more attractive fireflyjis determined by

(7)

The firefly algorithm has shown good performance in solving optimization problems. However, in some cases, the firefly algorithm may fall into local optima. In order to improve its performance, a new firefly algorithm with opposition-learning (simplified OFA) is proposed. The aim of OFA is to combine the firefly algorithm and the opposition-learning algorithm. The main steps of OFA are as follows:

1) Initialize the parameters of OFA, including the number of fireflyn, the light absorption coefficientγ, the initial attractionβ0, the maximum iteration number iter, and a decision valuep0.

2) If rand(0,1)

3) Calculate the number of opposite fireflies according to Eq.(6), and calculate the fitness value of the fireflies and opposite fireflies.

4) Rank the fitness values of the fireflies and opposite fireflies, and select the bestnfireflies as the new fireflies.

5) If the iteration number reaches the maximum iteration number iter, go to 8); otherwise, go to 2).

6) Calculate the fitness values of the fireflies, and rank the fitness values.

7) If the iteration number reaches the maximum iteration number iter, go to 8); otherwise, update fireflies according to Eq.(7), and go to 2).

8) Output the maximum fitness value and the corresponding firefly.

In the OFA, the role of the opposition-learning algorithm is different from the random disturbance term in the firefly algorithm. With the advantage of the opposition-learning algorithm, fireflies can easily escape from local optima and the diversity of fireflies can be increased. As a result, the global optima can be quickly found by the OFA.

2.3 Multilevel Otsu thresholding method based on OFA

In order to solve the optimization problem of the multilevel Otsu thresholding method, an OFA-based multilevel Otsu thresholding method is proposed.

Fig.1 Flowchart of the OFA-based multilevel Otsu thresholding method

3 Experiment

In order to verify the efficiency of the proposed method, three QFN defect images (QFN images with scratch defect, scrape defect and void defect) acquired from the test handler for QFN were tested in this paper and three other methods were programmed for comparison. All the experiments were implemented in a Matlab on a computer with Intel Core 2.26 GHz and 2 GB memory.

The parameters of the OFA-based method are set in Tab.1. The images of segmentation results with two and three thresholds are shown in Fig.2. In Fig.2, the first column is the tested images (QFN image with scratch defect, scrape defect and void defect from up to down); the second column and the third column are the corresponding images of the segmentation results with two thresholds and three thresholds.

Tab.1 Parameters of OFA-based method

Three benchmark methods (i.e., the exhaustive search, PSO-based multilevel Otsu thresholding and FA-based multilevel Otsu thresholding) were implemented for comparison. The parameters of the PSO-based multilevel Otsu thresholding are shown in Tab.2 and the parameters of the FA-based method are set the same as the proposed method. Tab.3 gives the thresholds and the corresponding fitness values of the four methods. It can be found that: 1) The results of the OFA-based method and the FA-based method are equal to that of the exhaustive method; 2) The PSO-based method cannot find the global best results.

Fig.2 Images of segmentation results

Tab.2 Parameters of PSO-based method

In order to further verify the superiority of the proposed method, the computation time and PSNR (peak signal-to-noise ratio) evaluation criteria are used to analyze the performance. The formula of PSNR is

(8)

Taking all into account, the OFA-based method can segment QFN surface defects images more efficiently and with greater speed than that of the other three methods.

Tab.3 Thresholds and the corresponding fitness values obtained by the four methods

Tab.4 Computation time and PSNR value of the four methods

4 Conclusion

This paper presents a novel multilevel Otsu thresholding based on the firefly algorithm with opposition-learning for segmenting QFN surface defect image. The main contributions are: 1) The firefly algorithm with opposition-learning (OFA) is proposed; 2) The OFA is applied when searching multilevel thresholds for image segmentation. Experimental results show that the proposed method can efficiently deal with QFN surface defects segmentation and its speed is faster than that of the other three methods. In the future, the adaptive selection of threshold number and defect feature extraction for QFN surface defects images are the next problems to be solved.

[1]Otsu N. Threshold selection method from gray-level histograms[J].IEEETransactionsonSystems,Man,andCybernetics, 1979, 9(1):62-66.

[2]Yin P Y. A fast scheme for optimal thresholding using genetic algorithms [J].SignalProcessing, 1999, 72(2): 85-95.

[3]Ghamisi P, Couceiro M S, Benediktsson J A, et al. An efficient method for segmentation of images based on fractional calculus and natural selection [J].ExpertsSystemswithApplications, 2012, 39(16): 12407-12417.

[4]Gao K L, Dong M, Zhu L Q, et al. Image segmentation method based upon Otsu ACO Algorithm [C]//InformationandAutomation:CommunicationsinComputerandInformationScience. Springer, 2011, 86: 574-580.

[5]Sathya P D, Kayalvizhi R. Optimal multilevel thresholding using bacterial foraging algorithm [J].ExpertSystemswithApplications, 2011, 38(12): 15549-15564.

[6]Yang X S. Firefly algorithms for multimodal optimization [C]//StochasticAlgorithms:FoundationsandApplications. Springer, 2009: 169-178.

[7]Horng M H, Liou R J. Multilevel minimum cross entropy threshold selection based on the firefly algorithm [J].ExpertSystemswithApplications, 2011, 38(12): 14805-14811.

[8]Hassanzadeh T, Vojodi H, Eftekhari A M. An image segmentation approach based on maximum variance intra-cluster method and firefly algorithm [C]//2011SeventhInternationalConferenceonNaturalComputation. Shanghai, China, 2011: 1817-1821.

[9]Tizhoosh H R. Opposition-based learning: a new scheme for machine intelligence [C]//InternationalConferenceonIntelligentAgents,WebTechnologiesandInternetCommerce. Canberra, Australia, 2005, 1: 695-701.

基于反向螢火蟲算法的多閾值缺陷圖像分割

陳 愷1戴 敏1張志勝1陳 平1史金飛2

(1東南大學機械工程學院,南京211189)(2淮海工學院,連云港222005)

為了分割QFN表面的缺陷,提出一種基于反向螢火蟲算法的大津多閾值分割法.首先,將大津閾值分割擴展為大津多閾值分割.其次,提出了一種基于反向學習的螢火蟲算法.在該算法中,生成的反向螢火蟲用于增加螢火蟲的多樣性和全局搜索能力.然后,將基于反向學習的螢火蟲算法應用于多閾值分割.最后,使用所提出的方法對QFN缺陷圖像進行閾值分割實驗,并將結果與窮舉法、基于粒子群算法的大津多閾值分割法、基于螢火蟲算法的大津多閾值分割法進行比較.實驗結果表明,所提方法能更有效地分割QFN表面缺陷,且分割速度快.

QFN表面缺陷;反向學習;螢火蟲算法;大津多閾值算法

TP391.41

Received 2014-03-10.

Biographies:Chen Kai (1986—), female, graduate; Zhang Zhisheng(corresponding author), male, doctor, professor, oldbc@seu.edu.cn.

s:The National Natural Science Foundation of China (No.50805023), the Science and Technology Support Program of Jiangsu Province (No.BE2008081), the Transformation Program of Science and Technology Achievements of Jiangsu Province (No.BA2010093), the Program for Special Talent in Six Fields of Jiangsu Province (No.2008144).

:Chen Kai, Dai Min, Zhang Zhisheng, et al. Defect image segmentation using multilevel thresholding based on firefly algorithm with opposition-learning.[J].Journal of Southeast University (English Edition),2014,30(4):434-438.

10.3969/j.issn.1003-7985.2014.04.006

10.3969/j.issn.1003-7985.2014.04.006


登錄APP查看全文

猜你喜歡
實驗
我做了一項小實驗
記住“三個字”,寫好小實驗
我做了一項小實驗
我做了一項小實驗
記一次有趣的實驗
有趣的實驗
小主人報(2022年4期)2022-08-09 08:52:06
做個怪怪長實驗
NO與NO2相互轉化實驗的改進
實踐十號上的19項實驗
太空探索(2016年5期)2016-07-12 15:17:55
《實驗流體力學》征稿簡則
主站蜘蛛池模板: 亚洲视屏在线观看| 国产精品 欧美激情 在线播放| 色婷婷国产精品视频| 久久人人妻人人爽人人卡片av| 美女视频黄又黄又免费高清| 91久久国产成人免费观看| 制服丝袜一区| 久久综合丝袜日本网| 99国产在线视频| 欧美一级高清免费a| 国产青榴视频在线观看网站| 色网在线视频| 亚洲另类第一页| 四虎永久在线精品国产免费 | 欧美成人综合视频| 福利视频99| 欧美成人精品在线| 香蕉在线视频网站| 精品国产一二三区| 韩日午夜在线资源一区二区| 一区二区三区四区在线| 最新无码专区超级碰碰碰| 91久久青青草原精品国产| 亚洲无码电影| 日韩午夜片| 永久免费无码日韩视频| 一本久道热中字伊人| 亚洲国产成人在线| 欧美精品亚洲精品日韩专区va| 日本免费福利视频| 一区二区影院| 久久永久精品免费视频| av大片在线无码免费| 久久国产精品嫖妓| 色综合久久久久8天国| 精品国产成人三级在线观看| 国产伦精品一区二区三区视频优播| 亚洲综合色区在线播放2019| 99re免费视频| 欧美成人区| 99青青青精品视频在线| 亚洲va视频| 日本一区二区不卡视频| 日韩高清成人| 国产精品尹人在线观看| 亚洲精品无码日韩国产不卡| 国产熟女一级毛片| 四虎影视8848永久精品| 五月六月伊人狠狠丁香网| 国产AV无码专区亚洲A∨毛片| 色老二精品视频在线观看| 精品国产Av电影无码久久久| 精品视频一区在线观看| 最近最新中文字幕在线第一页| 国产理论一区| 在线免费不卡视频| 国产精品私拍在线爆乳| 亚洲欧美日韩另类| 99精品久久精品| yjizz国产在线视频网| 国产日韩AV高潮在线| 五月天久久综合| 91精品国产一区自在线拍| 国产丝袜91| 极品av一区二区| 国产成年无码AⅤ片在线| 亚洲综合专区| 丝袜无码一区二区三区| 国产精品太粉嫩高中在线观看| 亚洲成a人片在线观看88| 久久中文电影| 亚洲乱亚洲乱妇24p| 国产精品播放| 国产精品久久久久鬼色| 亚洲天堂久久| 美女高潮全身流白浆福利区| 99热这里只有精品在线播放| 国产免费一级精品视频| 激情国产精品一区| 亚洲性一区| 久久精品无码国产一区二区三区| 在线看AV天堂|