Using VTK, DICOM

Help
2009-07-29
2013-04-25
  • Hello.
    I am a novice in the use of VTK.
    I need to display the tomographic images DICOM files from a directory of 3D objects.
    I have downloaded all the files, but they overlap and can not create a 3D object to work.
    I do so:

    void AddToWindow(vtk.vtkRenderWindow renWin)
            {
                vtk.vtkDICOMImageReader reader = new vtk.vtkDICOMImageReader();         
                reader.SetDirectoryName("C:\\Patient");
                reader.Update();
                vtk.vtkImageViewer viewer = new vtk.vtkImageViewer();
                viewer.SetInput(reader.GetOutput());
                vtk.vtkRenderer ren = viewer.GetRenderer();
                int VolData_Images = viewer.GetWholeZMax();
                for (int i = 0; i <= VolData_Images; i++)
                {
                   viewer.SetZSlice(i);
                   // viewer.GetRenderer().ResetCameraClippingRange();
                   //viewer.SetColorWindow(500);
                   //viewer.SetColorLevel(128);
                   renWin.AddRenderer(ren);
                }
           }//AddToWindow

    Help me, please.
    Thank you!