Reslice 3d Raw image using vtkImageReslice
Clash Royale CLAN TAG #URR8PPP Reslice 3d Raw image using vtkImageReslice I'm trying to get a 2d slice from a 3d raw image, and I'm viewing the output on a vtkImageViewer2 but I'm getting a blank window. I'm afraid that i can not make this code shorter because each step in this pipeline is necessary as mentioned here: example that i followed . also you need a raw image and its header file FullHead.raw.gz which uses FullHead.mhd as a header file. Here is my code : #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderer.h> #include<vtkRenderWindow.h> #include<vtkRenderWindowInteractor.h> #include <vtkGenericOpenGLRenderWindow.h> #include <vtkInteractorStyleTrackballCamera.h> #include <vtkImageReslice.h> #include <vtkImageData.h> #include <vtkLookupTable.h> #include <vtkImageMapToColors.h> #include <vtkImageViewer2.h> #include <vtkMatrix4x4.h> int main(){ vtkSmartPointer<vtk...