[vtkusers] ImageReslice

Naoko Takaya takaya at cv.cs.ritsumei.ac.jp
Mon Nov 13 01:26:32 EST 2000


Dear VtkUsers!!

I'm trying to reslice a volume data.
I'm able to see a slice/plane but 
no information on the volume.
It seems that it's just displaying the
plane and not the volume-cutted-image.

Am I missing something out?
Any help would be appreciated :)

My brief program code is the following.
===================================================
vtkScalars *vScalars

vtkStructuredPoints *vVol
vVol->GetPointData()->SetScalars(vScalars);

vtkImageReslice *vReslice = vtkImageReslice::New();
vReslice -> SetInput(vVol);
vReslice -> InterpolateOn();
vReslice -> SetOutputExtent(0,100,10,10,0,100);
vReslice -> SetOutputSpacing(space,space,space);
vReslice -> SetOutputOrigin(-0.5*space*100,0.0,-0.5*space*100);

vtkTransform *vTrans= vtkTransform::New();
vTrans -> PostMultiply();
vTrans -> Translate(-0.5*space*100,-0.5*space*100,-0.5*space*100);

vReslice -> SetResliceTransform(vTrans);

vtkDataSetMapper *vMapper 
vMapper->SetInput(vReslice->GetOutpu());
=====================================================

Thank you.

Naoko 

***********************************

                Naoko Takaya       
      e-mail: takaya at cv.cs.ritsumei.ac.jp      
    
***********************************





More information about the vtkusers mailing list