[vtk-developers] vtkStringArray and vtkImageReader
Mathieu Malaterre
mathieu.malaterre at kitware.com
Tue Feb 7 08:58:54 EST 2006
David Gobbi wrote:
> I've finished adding the vtkImageReader2::SetFileNames(vtkStringArray *) and will be committing to
> CVS unless there are objections. The bugtracker entry is here:
>
> http://public.kitware.com/Bug/bug.php?op=show&bugid=2834
>
> The next thing to do is add some filename-list generators. It would be very convenient to be able
> to do this:
>
> reader->SetFilePattern("/data/dir/*.sli")
>
> The SetFileNamePattern optionally generate filenames using wildcards instead of format strings, if
> the string contained "*" instead of "%". I'm hesitant to further complicate the vtkImageReader2
> API, but it sure would be nice to have something like this...
>
> The generic solution is to add a "vtkFileNameGenerator", similar to the way ITK does things. For
> VTK I would build the different kinds of file name generation (wildcard, numbered series,
> archetype) into one single class rather than create a class hierarchy. There would eventually be
> a vtkDICOMFileNameGenerator specifically for handling DICOM series.
I would rather see an ITK like approach, it has proven to be very
customizable in particular for the DICOM case as you mention.
Thanks
Mathieu
More information about the vtk-developers
mailing list