Skip to content

Instantly share code, notes, and snippets.

View QuestaYan's full-sized avatar

Quan Yan QuestaYan

  • Natinal university of defense technology
  • Changsha
  • 11:56 (UTC -12:00)
View GitHub Profile
@QuestaYan
QuestaYan / volume_rendering.py
Created February 27, 2022 15:12 — forked from kevin-keraudren/volume_rendering.py
Volume rendering in Python using VTK-SimpleITK
#!/usr/bin/python
import SimpleITK as sitk
import vtk
import numpy as np
import sys
from vtk.util.vtkConstants import *
filename = sys.argv[1]