针对传统的边缘检测算法分割图像时边缘定位不准的局限性,将蚁群优化算法用于彩色图像边缘检测。通过利用像素领域间的灰度值差确定启发引导函数,并合理设置参数,更新信息素矩阵迭代搜索边缘,然后用阈值判断边缘点,进而提取图像的真实边缘。实验显示,与传统算法相比,该算法具有较好的边缘检测效果,且收敛速度也快。
Aiming at the limitation of traditional edge detection algorithm which has imprecise edge localization while segmenting image, applies the ant colony optimization algorithm to edge detection of color image. The true edge of the image is extracted by using the difference of gray value between pixels to determine the heuristic guiding function, setting parameters reasonably, updating the edges of pheromone matrix and judging edges with the threshold. Then experimental results show that the proposed algorithm has better edge detection performance compared with traditional method and the convergence rate is also rapid.