[vtkusers] vtkPNMReader Unknown file type

shekharc Shekhar.Chandra at sci.monash.edu.au
Tue Dec 2 04:57:14 EST 2008


Hi Raffaele,

The vtkPNMReader reads only binary PGM/PNM files. Change your file to 
binary or write an ASCII reader. I think I coded it a while back, let me 
kno if u need it.

Cheers
Shakes

raf.califano at libero.it wrote:
> Hi all,
> I am a new user of vtk. i have installed vtk 5.2.0 and i work with vc++.
> I would read a PGM image format but i get the follow error:
> Unknown file type! is not a binary PGM or PPM!
> The header file is 
> P2
> # created by 'xv balloons_bw.tif'
> 640 480
> 255
> but vtkPNMReader can read only P5 and P6! (So I think)
> Please help me.
> Excuse me for my English.
> Best Regards
> 
> Raffaele Califano
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list