[vtkusers] Re: vtkDICOMImageReader

Jim Gerlach jim at gerlach-tech.net
Wed Apr 27 11:31:39 EDT 2005


thanks fot the example. 

brunos at lncc.br writes: 

> hi, 
> 
> This is a simple example 
> 
> vtkDICOMImageReader *reader = vtkDICOMImageReader::New();
>    vtkImageViewer     *viewer = vtkImageViewer::New(); 
> 
>    viewer->SetInput(reader->GetOutput());
>    reader->SetDirectoryName("C:/temp/DICOM");
>    reader->Update(); 
> 
>    int VolData_Images = viewer->GetWholeZMax (); 
> 
> 
>     for (int i=0;i<=VolData_Images;i++)
>     {
>      viewer->SetZSlice(i);
>      viewer->GetRenderer()->ResetCameraClippingRange();
>      viewer->SetColorWindow(400);
>      viewer->SetColorLevel(128); 
> 
> 
>      viewer->Render();
>    } 
> 
>    reader->Delete();
>    viewer->Delete(); 
> 
>    return 0; 
> 
> Citando Jim Gerlach <jim at gerlach-tech.net>: 
> 
>> anybody have a snippet on how to use vtkDICOMImageReader.
>> How do I read/open a DICOM file? 
>>
>>
>> _______________________________________________
>> 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 
>>
>  
> 
>  
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
 




More information about the vtkusers mailing list