擅长:python、mysql、java
<p>如果我正确地理解了<code>nii</code>文件是体积数据,因此除非从中创建<a href="https://vtkplotter.embl.es/content/vtkplotter/actors.html#vtkplotter.actors.Volume.isosurface" rel="nofollow noreferrer">isosurface</a>,否则不能将其“转换”为多边形数据,请尝试:</p>
<pre class="lang-py prettyprint-override"><code>from vtkplotter import load
vol = load('myfile.nii') #vtkVolume
vol.isosurface().show()
# or convert to vtk format:
vol.write('newfile.vti')
</code></pre>