[vtkusers] vtkJPEGreader

yala kaluma yala_aiiii at hotmail.com
Thu Mar 24 12:33:03 EST 2005


It seems like VTK's PNG,JPEG and PNG reader do not work.
Anybody has ever used it???

When I run the program below it seems like it toes not recognize the class 
vtkPNGReader!

And I am having the same problem with the image writers...

Am i doing something wrong?

#include "vtkPNGReader.h"
#include "vtkImageViewer.h"
#include "vtkRenderWindow.h"

int main( int argc, char *argv[] )
{
vtkPNGReader *pngReader=vtkPNGReader::New();
pngReader->SetFileName("/home/yala/VTKData-release-4-2/Data/fullhead15.png");

vtkImageViewer *viewer=vtkImageViewer::New();
viewer->SetInput(pngReader->GetOutput());
viewer->Render();

  int i;
  for (i = 0; i < 360; ++i)
    {
    viewer->Render();
    }

pngReader->Delete();
viewer->Delete();

  return 0;
}


Thanks!!!!!!!!!

_________________________________________________________________





More information about the vtkusers mailing list