title: How to convert vtk file to 3D data set?
body: <p>I have a vtk file outputted from a program, and what I require is a 3D data set. This vtk file is an ROI which I drew in another program, and I would like to convert it into a mask of the ROI (i.e., 1s where the ROI is, 0 everywhere else). It should be of the same size as the original 3D image which had the ROI drawn on top of it. I'm working in Python. Does anyone know how I can convert this vtk file into essentially a 3D numpy array?</p>