[vtkusers] vtkDICOMImageReader
Zampini Samuele
samuele.zampini at epfl.ch
Wed Jul 29 10:25:36 EDT 2009
Dear vtk-friends,
I have a question about vtkDICOMImageReader.
I read carefully older posts about this argument,
but I can not find the solution.
Could you help???
This is my code:
vtkRenderer *create_scene()
{
vtkDICOMImageReader *reader = vtkDICOMImageReader::New();
//vtkImageViewer2 *viewer = vtkImageViewer2::New();
reader->SetDirectoryName( "/usr/scratch/zampini/vmtk/dicom/pa1/st1/se1/" );
reader->Update();
vtkStructuredPointsWriter *writer = vtkStructuredPointsWriter::New();
writer->SetInput( reader->GetOutput() );
writer->SetFileName( "test.vtk" );
writer->Write();
return 0;
}
I can compile it (no errors) but when I run it I get a segmentation fault.
Could you help?
Thanks a lot,
samuele.
More information about the vtkusers
mailing list