发明名称 一种基于萤火虫优化算法的矿带图像分割法
摘要 本发明公开了一种基于萤火虫优化算法的矿带图像分割法,属于图像处理技术领域,首先对矿带图像进行预处理,将彩色矿带图像转换为灰度图像和自适应低通滤波处理;然后将萤火虫均匀地分布在矿带图像的灰度直方图空间中,并对每个萤火虫荧光素的值进行更新,根据局部信息、全局信息和随迭代次数自适应更新步长的策略对萤火虫进行移动,更新萤火虫的局部决策域半径,计算适应度函数,根据适应度函数搜索全局最优解,经过多次迭代之后,全局最优位置即为最佳阈值;根据最佳阈值对矿带图像进行分割,本发明在萤火虫的移动过程中,加入了全局信息和随迭代次数自适应更新步长的策略,算法的收敛速度快和收敛精度高,全局寻优能力强,适合于矿带图像分割。
申请公布号 CN103366362B 申请公布日期 2016.01.20
申请号 CN201310133323.3 申请日期 2013.04.17
申请人 昆明理工大学 发明人 和丽芳;童雄;黄宋魏;宋耀莲;黄斌;黄靖惠
分类号 G06T7/00(2006.01)I;G06T5/00(2006.01)I;G06N3/00(2006.01)I 主分类号 G06T7/00(2006.01)I
代理机构 代理人
主权项 一种基于萤火虫优化算法的矿带图像分割法,包括以下步骤:(1)在选矿过程中实时拍摄矿带图像,对矿带图像进行预处理,将矿带图像转换为灰度图像,然后利用自适应低通滤波对图像进行滤波处理;(2)萤火虫初始化:设置参数,设置最大迭代次数<img file="84575dest_path_image001.GIF" wi="28" he="25" />和萤火虫数目N,并利用在(0,1)之间均匀分布的随机函数使N个萤火虫均匀地分布在预处理后矿带图像的灰度直方图空间中;(3)对每个萤火虫荧光素的值进行更新,更新公式为<img file="75664dest_path_image002.GIF" wi="208" he="25" />,式中:<img file="915444dest_path_image003.GIF" wi="13" he="20" />为荧光素值,<img file="333787dest_path_image004.GIF" wi="17" he="18" />为荧光素消失率,<img file="626228dest_path_image005.GIF" wi="14" he="18" />为荧光素更新率,<img file="919544dest_path_image006.GIF" wi="9" he="17" />为迭代次数,<img file="551514dest_path_image007.GIF" wi="16" he="20" />为矿带图像的适应度函数值;(4)计算萤火虫移动后的位置 (a)寻找每个萤火虫的邻居集合,并计算移动概率<img file="203075dest_path_image008.GIF" wi="195" he="53" />,式中:<img file="186075dest_path_image009.GIF" wi="22" he="26" />为萤火虫<img file="581284dest_path_image010.GIF" wi="9" he="18" />向萤火虫<img file="67760dest_path_image011.GIF" wi="14" he="21" />移动的概率,<img file="155802dest_path_image012.GIF" wi="253" he="28" />是萤火虫<img file="861983dest_path_image010.GIF" wi="9" he="18" />在<img file="60883dest_path_image006.GIF" wi="9" he="17" />时刻的邻居集合,<img file="401866dest_path_image013.GIF" wi="40" he="26" />表示的是萤火虫<img file="660809dest_path_image010.GIF" wi="9" he="18" />和<img file="352821dest_path_image011.GIF" wi="14" he="21" />之间的欧氏距离,萤火虫<img file="89833dest_path_image010.GIF" wi="9" he="18" />根据计算出的移动概率<img file="550901dest_path_image014.GIF" wi="41" he="26" />在其邻居集合内选择一个移动概率最大的萤火虫<img file="980746dest_path_image011.GIF" wi="14" he="21" />,并向其移动;(b)利用步长计算公式<img file="393010dest_path_image015.GIF" wi="225" he="47" />根据t对步长进行自适应更新,最后根据位置更新公式<img file="933713dest_path_image016.GIF" wi="424" he="63" />对萤火虫的位置进行更新,计算公式中:<img file="514867dest_path_image017.GIF" wi="13" he="16" />为步长,<img file="850033dest_path_image018.GIF" wi="30" he="25" />为步长的最大值,<img file="516638dest_path_image019.GIF" wi="29" he="24" />为步长的最小值,<img file="595453dest_path_image020.GIF" wi="38" he="20" />和<img file="31113dest_path_image021.GIF" wi="42" he="20" />为[0,1]范围内的随机函数,<img file="537181dest_path_image022.GIF" wi="41" he="22" />为整个萤火虫群中适应度最大的萤火虫;(5)计算第<img file="192546dest_path_image023.GIF" wi="9" he="18" />个萤火虫的动态决策域,计算公式为:<img file="75052dest_path_image024.GIF" wi="337" he="30" />,式中:<img file="365219dest_path_image025.GIF" wi="17" he="26" />为第<img file="307767dest_path_image010.GIF" wi="9" he="18" />个萤火虫的动态决策域,<img file="683385dest_path_image026.GIF" wi="16" he="25" />为感知域半径,<img file="104002dest_path_image027.GIF" wi="17" he="22" />为动态决策域的更新率,为一个常数,<img file="514255dest_path_image028.GIF" wi="16" he="25" />为邻域个数阈值,用于控制邻域的数量,步骤(5)中的计算出的动态决策域被用于下一次迭代步骤(4)中移动概率的计算;(6)根据步骤(4)中计算出的萤火虫移动后的位置,来计算矿带图像的适应度函数,计算公式为:<img file="362125dest_path_image029.GIF" wi="533" he="47" />,式中:<img file="661257dest_path_image030.GIF" wi="22" he="25" />为矿带图像的类间方差,<img file="885565dest_path_image031.GIF" wi="13" he="22" />为矿带图像的阈值,<img file="150324dest_path_image032.GIF" wi="17" he="16" />为累积概率,<img file="434675dest_path_image033.GIF" wi="17" he="18" />为均值;(7)循环步骤(3)、(4)、(5)、(6)<img file="784885dest_path_image001.GIF" wi="28" he="25" />次,全局最优值所在的位置即为最佳阈值,矿带灰度图像由像素点构成,每个像素点具有一定的阈值,因此可以根据求出的最佳阈值对矿带图像进行阈值分割,得到最终的矿带图像分割结果。
地址 650093 云南省昆明市五华区学府路253号