[vtkusers] vtkImageViewer

Asad A. Abu-Tarif tarifa at rpi.edu
Tue Nov 14 20:54:45 EST 2000


Hi,
I'm using the appended pipeline and I'm getting a black screen as a result.
Can anyone tell me what I'm doing wrong.
Thanks.
Asad

===========================================================
// Read Image
vtkStructuredPointsReader *reader;
reader=vtkStructuredPointsReader::New();
reader->SetFileName(FileName);
reader->Update();

// Reslice it (I'm not sure that I need this step)
vtkImageReslice *Reslice;
Reslice=vtkImageReslice::New();
Reslice->SetInput(reader->GetOutput());

// Get value for i (slice number).

// View it
vtkImageViewer *Viewer;
Viewer=vtkImageViewer::New();
Viewer->SetInput(Reslice->GetOutput());
Viewer->SetZSlice(i);
Viewer->Render();





More information about the vtkusers mailing list