[vtkusers] vtkDICOMImageReader broken in vtk 5.0 and up?
    Ben Fulton 
    bfulton at prosolv.com
       
    Mon Mar 13 16:11:28 EST 2006
    
    
  
Did anything come of this?  I'm trying to figure out how to use
vtkDICOMImageReader now, and getting crashes as well.  I based my code on an
old email from this list - maybe it's out of date now?
int main()
{
   vtkDICOMImageReader *reader = vtkDICOMImageReader::New();
   vtkImageViewer2     *viewer = vtkImageViewer2::New();
   viewer->SetInput(reader->GetOutput());
   reader->SetDirectoryName("C:\\VTK 5.0\\src\\sample\\study1");
   reader->Update();
   int VolData_Images = viewer->GetSliceMax ();
   for (int i=0;i<=VolData_Images;i++)
   {
     viewer->SetSlice(i);
     //for vtkImageViewer2 before r1.19
     viewer->GetRenderer()->ResetCameraClippingRange();
     viewer->Render();
   }
   reader->Delete();
   viewer->Delete();
   return 0;
}
-----Original Message-----
From: vtkusers-bounces+bfulton=prosolv.com at vtk.org
[mailto:vtkusers-bounces+bfulton=prosolv.com at vtk.org] On Behalf Of Mathieu
Malaterre
Sent: Friday, March 10, 2006 3:49 PM
To: Sven Prevrhal
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] vtkDICOMImageReader broken in vtk 5.0 and up?
Sven Prevrhal wrote:
> I have DICOM images that vtk 4.4 will read just fine, but vtk 5.0 and up 
> and nightly builds will crash.  (I built vtk with python 2.4). Anybody 
> experiencing similar behavior?
Can you send me a sample data to reproduce the problem ?
Thanks
Mathieu
_______________________________________________
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