[vtkusers] read a stack of images (as numpy array) into marching cubes

alex.braun alex at 3scan.com
Tue Apr 12 18:05:48 EDT 2016


I have a stack of PNGs that I'm reading into a numpy array (3D tensor) and
then into a vtk array via: 

    data = numpy_to_vtk(num_array=data.ravel(), deep=True,
array_type=vtk.VTK_INT) 

I would like to feed this into vtkDiscreteMarchingCubes and then pump the
output back to numpy or an obj file, but marching cubes takes a DataObject
and I have no idea how to convert an array into one. 

Any suggestions? 



--
View this message in context: http://vtk.1045678.n5.nabble.com/read-a-stack-of-images-as-numpy-array-into-marching-cubes-tp5737646.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list