摘要:
import os current_directory = os.getcwd() parent_directory = os.path.dirname(current_directory) print("当前目录:", current_directory) print("上一级目录:", pare 阅读全文
摘要:
import SimpleITK as sitk import numpy as np # 加载图像 image = sitk.ReadImage('input.nii.gz') # 将SimpleITK图像转换为NumPy数组 image_array = sitk.GetArrayFromImag 阅读全文