[vtkusers] vtkDICOMImageReader
brunos at lncc.br
brunos at lncc.br
Tue Apr 26 14:53:14 EDT 2005
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