Numpy uint8_t arrays to vtkImageData
问题 I am attempting to take 2D images of either one or three channels and display them in VTK using vtkImageActor . As I understand it, the current frame to be displayed can be updated by invoking SetImageData on vtkImageActor and providing an instance of vtkImageData . I have set up my visualiser as shown below. However, I am unsure how to build the vtkImageData object from the numpy arrays(this would go in the updateFrames method). The type of my numpy arrays is np.uint8_t . I am using VTK8.0,