在OpenGL中卷卷? [英] Volume rendring in opengl ?

查看:182
本文介绍了在OpenGL中卷卷?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是OpenGl的新手,我正尝试将ct扫描加载到openGl中并从中创建3D模型.我在向多维数据集进军,但在opengl中什么也没有实现或开始.任何建议的帮助都将受到欢迎.

我尝试过的事情:

openGl教程中的Marching多维数据集.(未找到)
我在源代码中找到了一个项目并运行了该项目,但似乎很难编码,但我尝试理解该代码,但我却无法这样做.

I new in OpenGl, I am trying to load ct scan into openGl and create 3d model form it. I foiund marching cube but nothing in opengl to implement or start with. any suggestion help will be more than welcome .

What I have tried:

Marching cube in openGl tutorial .(nothing found )
I found a project in source code and run it but seem hard coded I tried to understand the code but I can''t .

推荐答案

Paul Bourke来自大学的讲师西澳大利亚州的最好的外行人解释和代码,我看过的多维数据集.

对标量场进行多边形化(行进立方体) [ ^ ]

他向您展示了正在发生的事情以及代码.

本质上,您从通常是点云的框开始,然后使用它们之间的45度面开始对每个面进行细分(他的图片使其更清晰).只要表面上没有任何点,您就一遍又一遍地继续进行下去,将多维数据集向下细分并进行细分.

当您不再可以折叠行进的多维数据集时,剩下的就是适合浊点体积的形状.这就是该过程的名称的地方,您可以得到完全包围随机点集(体积)的表面渲染.它使用了大量的医学成像技术,从CRT扫描中构建点云,然后他们需要点云的表面网格.
Paul Bourke a lecturer from University of Western Australia has the best layman explaination and code I have seen for marching cubes.

Polygonising a scalar field (Marching Cubes)[^]

He shows you what is happening as well as the code.

Essentially you start with a box around what is usually a point cloud and then you start subdividing each face using the 45 degree face between them (his pictures make it clearer). So long as no point lies outside the face you continue the process over and over again marching the cubes down and subdividing more and more.

What you are left with when you can collapse the marching cubes no more is the shape that fits around the volume of the cloud points. That is where the process gets its name you have the surface render that fully encloses the random set of points (volume). Its used a lot it medical imaging where they construct the point cloud from CRT scans and then they want a surface mesh of the point cloud.


这篇关于在OpenGL中卷卷?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆