摘要
利用VC++6.0以及OpenGL实现光线投射算(Ray Casting)法。介绍了光线投射算法以及OpenGL的知识。主要实验方法为:第一、对原始CT图像进行数据预处理、数据分类,得到满足绘制要求的规则体数据,并且对各个数据点赋予颜色值和不透明度;第二、利用体绘制算法绘制出人头(主要是人脑)图像,并且能够实现空间上三个方向的浏览与绘制功能,但是绘制速度比较慢。实验结果表明:采用光线投射算法能够实现人脑的三维可视化,并且能够绘制出清晰图像,图像效果令人满意。
Ray casting algorithm is achieved through using of the tools of VC+ + 6.0 and OpenGL. Introduced the ray casting algorithm and the knowledge of OpenGL. The crucial experimental method is following. Firstly, the regular volume data needed in the process of volume rendering are obtained by the preprocess of original CT images, and the values of color and opacity are distributed to every data. Secondly, the image of head which the main part is the brain of person is rendered with the volume rendering, and the function of browse and rendering can be completed in three directions of space. However, the speed of rendering is slow. Experimental results show that a proper example of volume rendering is exemplified in the visualization of 3D the person's brain by ray casting algorithm, and the image of render- ing is quite clear, the result of image is very satisfied.
出处
《计算机技术与发展》
2010年第3期218-220,224,共4页
Computer Technology and Development
基金
国家自然科学基金支持项目(60673188)
关键词
光线投射算法
重采样
体绘制
ray casting algorithm
resampling
volume rendering