[vtkusers] Reading standard image types
Jim Peterson
jimcp at cox.net
Sat Oct 16 16:04:48 EDT 2010
David Doria wrote:
>> Does vtkImageReader2Factory fill this bill?
>>
>
> It certainly sounds like it - but it doesn't seem to work.
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/IO/ImageReader2Factory
>
> When I pass it a png file I get:
> vtkPNGReader (0x819eed8): Unable to open file .0
>
> David
>
>
David,
I got the unable to read .0 error when I did not set the filename in the
returned reader from java. Are you certain the parameters are correct to
your test? I am able to display .jpg and .png files with no problem. I
am using fully qualified path names to my image files.
Jim
More information about the vtkusers
mailing list