[vtkusers] get a slice from a volume

Jason 2130220212 at email.szu.edu.cn
Thu Jan 29 08:54:10 EST 2015


Hi,

I am trying to get a slice from a volume. And I am using vtkImageReslice
with:

vtkSmartPointer<vtkMatrix4x4> resliceAxes =
vtkSmartPointer<vtkMatrix4x4>::New();
resliceAxes->DeepCopy(axialElements);	
resliceAxes->SetElement(0, 3, Original[0]); //the original point is wrong
resliceAxes->SetElement(1, 3, Original[1]);
resliceAxes->SetElement(2, 3, Original[2]);

vtkSmartPointer<vtkImageReslice> reslice =
vtkSmartPointer<vtkImageReslice>::New();
reslice->SetInput(connector->GetOutput());
reslice->SetOutputDimensionality(2);
reslice->SetResliceAxes(resliceAxes);
reslice->SetInterpolationModeToLinear();
reslice->AutoCropOutputOn();

I cannot get the slice's original point. And I was wondering whether if I
can get the point through the resliceAxes's axialElements infomation.

Thanks for the help!

Regards,
Jason.



--
View this message in context: http://vtk.1045678.n5.nabble.com/get-a-slice-from-a-volume-tp5730256.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list