[vtkusers] DICOM images

Dov Grobgeld dov.grobgeld at weizmann.ac.il
Mon Jun 6 22:34:16 EDT 2005


Hello Abhi,

You may want to try to use dcmtk for the reading the dicom data
instead of the vtkDicomImageReader. See my posting at:

   http://public.kitware.com/pipermail/vtkusers/2005-April/079239.html

Regards,
Dov

On Mon, Jun 06, 2005 at 05:32:11PM +0000, Abhi Rampal wrote:
> Dear VtkUsers,
> 
> Currently I am reading a set of dicom images. Using vtkDicomImageReader I 
> am able to read some dicom images completely and others pop up only one 
> image in a series of 44 images. The error it pops up is: "No DICOM magic 
> number found, but file appears to be DICOM. Proceeding without caution". 
> Does anyone have a solution to this? The code used is:
> 
> vtkDICOMImageReader *reader = vtkDICOMImageReader::New();
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> 
>    viewer->SetInput(reader->GetOutput());
>    reader->SetDirectoryName("C:\\vtk\\Test");
>    reader->Update();
> 
>    int VolData_Images = viewer->GetWholeZMax ();
> 
>     for (int i=0;i<=VolData_Images;i++)
>     {
>      viewer->SetupInteractor(iren);
> 	  viewer->SetZSlice(i);
> 	  viewer->SetColorWindow(400);
>      viewer->SetColorLevel(128);
> 	  viewer->Render();
> 
>    }
> 
> 
> 	 iren->Start();
> 	reader->Delete();
>    viewer->Delete();
> 
> Thank you and with kind regards,
> 
> Abhi
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list