[vtkusers] vtkDICOMImageReader - reading ONLY the DICOM files in one folder

polys_poly at hotmail.com polys_poly at hotmail.com
Mon Apr 14 08:03:00 EDT 2008


Hello,

I want to read some DICOM images from a folder that also contains other files (not DICOM) for example .txt files. I use the following code

vtkDICOMImageReader* pRead = vtkDICOMImageReader::New();
pRead->SetDirectoryName(strPath.c_str());
pRead->Update();

But when it tries to read a .txt file for example I get error. Is there any way I can modify this code so I can read ONLY the DICOM images contained in the specific folder?

Thanks in advance,
Polys
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080414/30a83f72/attachment.htm>


More information about the vtkusers mailing list