[vtkusers] vtkDICOMImageReader: skip reading some images ???

wassim_belhadj at topnet.tn wassim_belhadj at topnet.tn
Wed Mar 25 12:56:31 EDT 2009

Thank you for your reply.
can you can you tell me please How to solve my problem using this class
As I told, I want to skip reading some images of my directory (e.g: reading
 from image  50 until 150  of a directory which contains 200 images ).
A piece of source code will be welcome.
Thank you in advance. 

On Wed, 25 Mar 2009 17:43:19 +0100, Mathieu Malaterre
<mathieu.malaterre at gmail.com> wrote:
> 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 ------>
>> 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

More information about the vtkusers mailing list