摘要
通过视觉图像静态特征整合方法的研究,本文提出一种基于VC实现颜色和形状特征信息整合方法。介绍VC环境中图像类的自定义,使用集合类CPtrArray解决图形对象的动态存储问题;利用CStdioFile类进行文本数据的读取,并解决从字符型数值转换成数值型数据的问题;最后利用MFC中的OnDraw函数绘制出与原始图像对应的特征图像,并显示出来。实验运行结果显示,能够取得较好的效果。
Via research on vision image stationary feature conformity methods,this paper proposes a method to realize color and shape feature information conformity based on Visual C++,introduces how to develop graph class in VC environment,and uses CPtrArray to solve the problem of dynamic storage for image object.Realizes TXT data read function with CStdioFile class,and solves the problem of transformation from string type to integer type.At last draws the feature image using OnDraw function in MFC.Experimental results show that, it can receive a better effect.
出处
《计算机与现代化》
2010年第1期128-130,135,共4页
Computer and Modernization
关键词
特征整合
VC
类
MFC
feature conformity
Visual C++
class
MFC