[vtkusers] (no subject)

vekinder at uni-koblenz.de vekinder at uni-koblenz.de
Tue Mar 22 08:04:50 EST 2005


Hi,

I'm beginner in VTK and my question is real basic.

I want to read in pgm Image Data (MR-Slices) in order to visualise it later.
I use vtkPNMReader, but what have I exactly to do?

In literature there are only very general information.

Our code :
    vtkPNMReader *pnmr = vtkPNMReader::New();
    pnmr->SetDataExtent(0, 255, 0, 255, 0, 9);
    pnmr->SetFilePrefix ("../../../Data/mr");
    pnmr->SetFilePattern("%s.%d.pgm");

Can we access to the pnmr? And how to control whether the data is read in
correctly.

Thanks for your help






More information about the vtkusers mailing list