[vtkusers] How can I enlarge the data of vtkImageReslice.

S.Joung shjoung at miki.pe.u-tokyo.ac.jp
Tue Mar 23 22:48:35 EST 2004


Hi all,

I'm using the class of vtkVolume16Reader to read a rawdata.
And I resliced the data using vtkImageResliece.
but I can't enlarge the resliced image.
How can I enlarge the data of vtkImageReslice.

Here is some source code of my program.
A v16 is a vtkVolume16Reader.
--------------------------------------------------
  vtkImageReslice *reslice1 = vtkImageReslice::New();
    reslice1->SetInput(v16->GetOutput());
    reslice1->InterpolateOn();
    reslice1->OptimizationOn();
    reslice1->SetResliceAxesDirectionCosines(0,1,0, 0,0,-1, -1,0,0);
    reslice1->SetOutputSpacing(1.0, 1.0, 1.0);

  vtkImageViewer *viewer = vtkImageViewer::New();
    viewer->SetInput(reslice1->GetOutput());
    viewer->SetColorWindow(2000);
    viewer->SetColorLevel(1000);
    viewer->Render();;
--------------------------------------------------



More information about the vtkusers mailing list