[vtkusers] Problem with vtkImageReslice

DJQ 836856733 at qq.com
Fri Oct 27 07:28:04 EDT 2017


		vtkSmartPointer<vtkImageReslice> resliceFilter =
vtkSmartPointer<vtkImageReslice>::New();
		resliceFilter->SetInputData(m_spVtkImageData);
	
resliceFilter->SetOutputSpacing(resliceSpacing,resliceSpacing,resliceSpacing);
		resliceFilter->SetOutputSpacing(0.4,0.4,0.4);
		//resliceFilter->SetOutputSpacing(0.2,0.2,0.2);
		resliceFilter->SetSlabModeToMean();
		resliceFilter->SetSlabNumberOfSlices(1);
		resliceFilter->SetInterpolationModeToCubic();
		resliceFilter->Update();
        
		m_spVtkImageData=resliceFilter->GetOutput();



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list