VTK实现简单科学可视化
来源:互联网 发布:艾瑞数据分析 编辑:程序博客网 时间:2024/05/16 13:44
VTK(Visualization ToolKit)是一种可视化工具箱,功能强大,能帮我们进行各种图像处理和可视化。本实验利用VTK对尸体头颅体数据进行科学可视化。
实验环境:
VS2015+VTK7.0
VTK的安装有点麻烦,但这是个学习的过程,网上有许多相关教程,多花点时间肯定能成功。
实验数据:
本实验数据来源于:The stanford Volume Data Archive
网站里有头颅数据的详细信息,原始数据信息如下:
Description: CT study of a cadaver headDimensions: 113 slices of 256 x 256 pixels, voxel grid is rectangular, and X:Y:Z aspect ratio of each voxel is 1:1:2Files: 113 binary files, one file per sliceFile format: 16-bit integers (Mac byte ordering), file contains no headerData source: acquired on a General Electric CT Scanner and provided courtesy of North Carolina Memorial Hospital
有多种格式的数据,都是从原始数据转化而来的。本实验使用 16-bit TIF格式数据
算法:
主要算法:Marching Cubes
Marching cubes algorithm use for extracting a polygonal mesh of an isosurface from a three-dimensional discrete scalar field (sometimes called voxels). The algorithm proceeds through the scalar field, taking eight neighbor locations at a time (thus forming an imaginary cube), then determining the polygon(s) needed to represent the part of the isosurface that passes through this cube. The individual polygons are then fused into the desired surface.The applications of this algorithm are mainly concerned with medical visualizations such as CT and MRI scan data images, and special effects or 3-D modelling with what is usually called metaballs or other metasurfaces(wiki).
结果显示:
渲染了两个表面,一个皮肤,一个骨骼,皮肤的不透明度可以调节。
(1)皮肤不透明度为1
(2)不透明度为0.5
(3)不透明度为0
图片大小问题无法显示,代码以及详情请看:我的Github
- VTK实现简单科学可视化
- VTK可视化管线
- 【VTK】可视化管线
- vtk可视化管线
- 可视化.pcd/.vtk文件
- VTK中的地理可视化
- 可视化科学计算Matlab语言的简单应用
- 简单的VTK程序:实现交互功能
- 科学计算可视化
- 科学可视化基础
- 04-VTK可视化管线(1)
- 04-VTK可视化管线(2)
- VTK教程之一:可视化管线
- VTK学习笔记:可视化模型
- 04-VTK可视化管线(1)
- 基于ITK和VTK实现三维体数据的区域生长分割和可视化
- 最简单实现vtk显示中文字符的办法
- JS简单实现拖拽可视化构图
- 0/1背包问题-----回溯法求解
- bzoj 2216: [Poi2011]Lightning Conductor 决策单调性+cdq分治
- 河南省第十届ACM大学生程序设计竞赛总结
- 逆向工程核心原理学习笔记(二十三):栈帧10:设置返回值,删除栈帧&main()函数终止
- 弹力球事件
- VTK实现简单科学可视化
- Linux之file_struct&fd(file descriptor)
- 文件IO编程五
- 专项练习:数组和字符串(二)
- CXF和Spring的集合约束
- SQL Server配置读写分享 注意事项
- 腾讯云修改了root用户密码为什么没有生效的解决办法
- POJ1017贪心
- 常见对象-模拟用户登录案例