I'm attempting to export VTK data into numpy using vtk_to_numpy. The program reads in a set of DICOM files using vtkDICOMImageReader. Filters the image using vtkContourFilter, and some other stuff and then displays the rendered solid. I would then like to export the data to Numpy so i do the following scalars=skin.GetMapper().GetInput().GetPointData().GetScalars() <br>
<br>Which gives me the scalars that I am looking for. My question is how do get the [x,y,z] data to go with the scalars into numpy?<br><br>skin.GetMapper().GetInput().GetWholeExtent() gives me the correct dimensions (0, 511, 0, 511, 0, 56) but I have exported less scalars than this... <br>