赞
踩
import vtk reader = vtk.vtkDICOMImageReader() reader.SetFileName('...\\.dcm') reader.Update() viewer = vtk.vtkImageViewer2() viewer.SetInputConnection(reader.GetOutputPort()) iren = vtk.vtkRenderWindowInteractor() viewer.SetupInteractor(iren) viewer.Render() viewer.GetRenderer().ResetCamera() viewer.Render() iren.Start()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。