摘要
在采用Canny算子提取工业图像边缘的快速分离算法的基础上,提出了在VC++6 0环境下对计算Canny算子的过程进行优化以提高处理速度的两种方法:采用编译器自带优化工具进行优化法和采用MMX(MicroprocessorMediaExtension)多媒体扩展技术进行优化法。前者主要是通过最佳地组合C优化器的各个优化选项,以达到缩短代码长度和提高代码执行速度的优化目的,后者则是利用高效的MMX指令和SIDM(Sin gleInstructionMultipleDate)单指令多数据核心技术来编写汇编代码以达到优化目的的。实验结果表明,优化后的Canny算子运算速度提高200%~400%。
A fast separate algorithm with Canny operator used for processing the industrial images is introduced.Two measures, compiler optimization and MMX technology optimization, are adapted in VC++6.0 to further optimize the algorithm in order to detect the edge of industrial images quickly and exactly.The former is mainly used to combine selection items of C compiler, while the later adapts MMX instructions and SIDM. The results of experiment show that the improving algorithm is faster by 200%~400% than the ordinary one.
出处
《控制工程》
CSCD
2004年第1期73-75,90,共4页
Control Engineering of China
基金
广西自然科学基金资助项目(桂科基0009004)