[vtkusers] Problem occurrence

heochy heochy at hotmail.com
Fri Feb 13 00:50:10 EST 2004


See the image which is to the url...

http://210.119.33.15/~heochy/2DSlice.JPG

current pipeline :
vtkVolume16Reader -> vtkImageReslice -> vtkTransform -> vtkImageMapper
-> vtkActor2D

The method which is the possibility of show the image which is correct
to a line?

>From the vtkImageReslice there was not a possibility of seeing with the
SetOutputExtend and the SetOutputSpacing.

Different method?

Follow code..
//vtkImageReslice
m_pFreeObliqueImageReslice[1]->SetInput(m_pMPRReader->GetOutput());
m_pFreeObliqueImageReslice[1]->SetOutputExtent(m_nWidth/2, m_nWidthSpace
+ m_Extend, m_nHeightSpace, m_nHeightSpace + m_Extend, 0, m_Extend);
m_pFreeObliqueImageReslice[1]->SetOutputSpacing(m_fSpacing, m_fSpacing,
m_fSpacing);  
m_pFreeObliqueImageReslice[1]->SetInterpolationModeToLinear();
    
//vtkTransform
m_pFreeObliqueTransform[1]->RotateX(-90);
m_pFreeObliqueTransform[1]->RotateY(90);
m_pFreeObliqueTransform[1]->RotateZ(0);

//vtkImageMapper & vtkActor2D
m_pFreeObliqueImageReslice[1]->SetResliceAxes(m_pFreeObliqueTransform[1]
->GetMatrix());
m_pFreeObliqueImageMapper[1]->SetInput(m_pFreeObliqueImageReslice[1]->Ge
tOutput());
m_pFreeObliqueActor2D[1]->SetMapper(m_pFreeObliqueImageMapper[1]);



More information about the vtkusers mailing list