[vtkusers] vtkDICOMImageReader - reading ONLY the DICOM files in one folder
polys_poly at hotmail.com
polys_poly at hotmail.com
Sun Apr 13 07:07:22 EDT 2008
Hello,
I want to read some DICOM images from a folder that also contains other files (not DICOM). 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/20080413/6a0c3901/attachment.htm>
More information about the vtkusers
mailing list