anoushkrit / parcellation

preprocessing pipeline for handling raw neuroimaging data and conducting various file conversions
https://supwma.github.io
Other
0 stars 0 forks source link

convert .vtp to .vtk #1

Closed anoushkrit closed 2 years ago

anoushkrit commented 2 years ago
anoushkrit commented 2 years ago

use these file type readers to handle the different file types

if extension == '.vtk':
    reader = vtk.vtkPolyDataReader()
elif extension == '.vtp': 
    reader = vtk.vtkXMLPolyDataReader()