[vtkusers] vtkDICOMImageReader: skip reading some images ???
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Mar 25 12:43:19 EDT 2009
On Wed, Mar 25, 2009 at 5:27 PM, <wassim_belhadj at topnet.tn> wrote:
> Hi
> I'm using vtkDICOMImageReader for reading DICOM Image.
> My directory contains 200 images(IMG0001 ------> IMG0200)
> I want to skip reading some images
> For example reading from image 50 until 150 ((IMG0050 ------> IMG0150).
> How to do this please.
> Thank you in advance.
Short answer you cannot.
vtkDICOMImageReader did not implement neither the
SetFilePattern/SetFilePrefix nor the SetFileNames API, you may want to
report a bug report for that at: http://vtk.org/Bug.
You could use vtkGDCMImageReader as it provides a -better- replacement
for vtkDICOMImageReader, and implements a more flexible API
(SetFileNames is implemented).
2cts
--
Mathieu
More information about the vtkusers
mailing list