def main():
# assumes unsigned byte datatype and volume dimensions of 256x256x225
volsize = (256, 256, 225)
volume = load_raw(os.path.join("data", "head256.raw"), volsize)
tff = load_transferfunction(os.path.join("data", "tff.dat"))
app = QtWidgets.QApplication([])
window = QGLControllerWidget(volume, volsize, tff)
window.move(QtWidgets.QDesktopWidget().rect().center() - window.rect().center())
window.show()
app.exec_()
volume_raycasting_example.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录