摘要:
import os current_directory = os.getcwd() parent_directory = os.path.dirname(current_directory) print("当前目录:", current_directory) print("上一级目录:", pare
阅读全文
posted @ 2024-07-29 10:12
大海z16
阅读(6)
推荐(0)
编辑
摘要:
import SimpleITK as sitk import numpy as np # 加载图像 image = sitk.ReadImage('input.nii.gz') # 将SimpleITK图像转换为NumPy数组 image_array = sitk.GetArrayFromImag
阅读全文
posted @ 2024-07-29 10:00
大海z16
阅读(8)
推荐(0)
编辑