图像分割是一个经典的难题,也是数字图像处理的重要一步。找到一种快速高效的图像分割方法具有十分重要的意义。本文利用MATALB中GUI设计开发的简便性和易操作等特性,以PSO-KMeans图像分割组合算法理论研究为基础,并与同类分割算法KMeans算法的分割结果和数据作比较。通过图像用户界面相关控件的布局设计及回调函数程序的编写,开发了一套基于PSO-KMeans算法的MATLAB(GUI)图像分割系统平台,实现了对图像分割中分割结果、参数输出、数据可视化的简洁操作,解决了图像分割过程中实现复杂的问题。同时,选取在图像分割应用中的示例图片对图像进行分割测试。结果表示,图像分割系统界面友好,操作简单,准确实现了图像的分割,并得到分割的相关数据以及与同类算法分割结果的比较。该研究提高了图像分割的简单性以及可视化性。
Image segmentation is not only a classic difficult problem but also an important step in digital im-age processing. Finding a fast and efficient image segmentation method is very important. Based on the simplicity and easy operation of GUI design and development in MATALB, this paper is based on the theoretical research of PSO-KMeans image segmentation combination algorithm, and compared with the segmentation results and data of KMeans algorithm. Through the layout design of the image user interface related controls and the writing of the callback function program, a set of MATLAB (GUI) image segmentation system platform based on PSO-KMeans algorithm was de-veloped, which realized the segmentation result, parameter output and data visualization in image segmentation. The simple operation solves the complicated problem in the image segmentation process. At the same time, the sample image in the image segmentation application is selected to segment the image. The results show that the image segmentation system has a friendly interface and simple operation, and accurately realizes image segmentation, and obtains the related data of segmentation and the comparison with the segmentation results of similar algorithms. This study improves the simplicity and visualization of image segmentation.