在python中切片体积渲染图

时间:2017-06-26 03:49:10

标签: python visualization slice volume 4d

我有一个输入数据,每行有(x,y,z,数据),即每个坐标(x,y,z)都有一个值“data”。我想在python中制作如下所示的切片体积图。我是python的新手,任何提示都会非常感激。 see here for the example graph

1 个答案:

答案 0 :(得分:0)

如果您将数据组织为2D数组(n点x 4)[x,y,z,数据](这也可以称为点云表示),并且您希望将其显示为体积渲染。您必须先将其重新取样为3D数组(interpolate 3D volume with numpy and or scipy),然后使用行进立方体创建等值面(How to display a 3D plot of a 3D array isosurface in matplotlib mplot3D or similar?

您还可以使用3D散点图绘制值,这样更容易,但不会让您获得所要求的情节(https://matplotlib.org/examples/mplot3d/scatter3d_demo.html

相关问题