Creating vtkPolyDataModel from PNG stack

visualization

(Michael Ef) #1

Hi all,

so I’m new to slicer and I want to visualize the surface of a stack of png’s by marching cubes algorithm (as python module).
So far my slides are already segmented and registrated, I loaded them to slicer and converted them to a scalar volume node. Now I want to pass these image data to vtkMarchingCubes to generate a surface model of my slides, but after running the algorithm, it returns an empty poly data object.

So could anyone please tell me, what is the best practice to load in the data and process the visualization? And what kind of preprocessing needs to be done to get that running?

Thanks in advance!

Regards Michael