摘要
详述了实现遗传算法在图像分割上的应用的一种新方法。为了减少编写遗传算法代码的复杂度,提高程序的运行效率,结合VC++和MATLAB各自的优势,采用混合编程的方法,先用MATLAB编写实现图像分割的遗传算法代码,并设置特定参数代码,接着通过Matcom把此代码翻译成VC++能处理的C++源码,最后通过VC++编译成一个可执行文件。实验结果表明此方法既可极大地减少编程工作量,又相当大地提高了程序运行效率,可脱离MATLAB运行环境,取得较好的效果。
In this paper it describes in detail a new method for the application of genetic algorithm in image segmentation. In order to reduce the complexity in programming the genetic algorithm, increase the program's execution efficiency, respective advantages of VC + + and MATLAB are combined in mixed programming in such a way that the image segmentation codes which implement the genetic algorithm are firstly written in MATLAB, then by using Mateom the codes are translated into C + + source codes, of which VC + + can handle, and finally compile them to an executable file by VC + +. Experiments show that this method, to a very large extent, reduces the workload in programming and, simultaneously, increases the execution efficiency by. getting rid of the MATLAB environment, achieves good results.
出处
《计算机应用与软件》
CSCD
北大核心
2008年第10期234-235,270,共3页
Computer Applications and Software