[vtkusers] Reading standard image types

David Doria daviddoria at gmail.com
Sat Oct 16 14:07:59 EDT 2010


On Sat, Oct 16, 2010 at 1:53 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> David,
>
> ITK has a very nice IO factory mechanism and the itk image reader
> determines at run-time what io reader to use. It can also load shared
> libraries to add new types.
>
> It would be nice to have similar functionality in vtk, but it would be
> a lot of work to provide a solution as flexible as itk's.
>
> There is probably a quick and dirty way to do it in vtk, but it would
> be quick and dirty... I doubt if a quick and dirty solution will get
> into VTK.
>
> Bill

Here is the "quick and dirty" way. However, I see no reason not to add
this for people to use until someone (might be a long time...) writes
the full factory-style reader.

Here is the code:
http://github.com/daviddoria/vtkImageFileReader

Comments?

David



More information about the vtkusers mailing list