最后是这么解决的~~如下:(这就是传说中的军刀
![](http://tb2.bdstatic.com/tb/editor/images/face/i_f02.png?t=20140803)
)
int *ext = pData_orz->GetExtent();
double *origin = pData_orz->GetOrigin();
vtkSmartPointer<vtkImageReslice> pReslice = vtkSmartPointer<vtkImageReslice>::New();
pReslice->SetOutputOrigin(origin);
pReslice->SetOutputExtent(ext);
pReslice->SetAutoCropOutput(1);//!!!一定要加这句话
pReslice->SetInput(pData);
pReslice->Update();