Last active
February 23, 2023 08:32
-
-
Save Kei-jan/af07a0f387696a1bfb892dcfb25347f1 to your computer and use it in GitHub Desktop.
Medical image data type transform.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def any2dicom(datapath:str,savepath:str): | |
pass | |
def dicom2any(datapath:str,savepath:str,savetype:str): | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def type2type(sourcepath:str,savepath:str,sourcetype:str,savetype:str): | |
''' | |
See sub-files | |
sourcepath: | |
''' | |
pass | |
def loader(type:str,datapath:str) | |
pass | |
def saver(type:str,data): | |
pass | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def nii2any(datapath:str,savepath:str,savetype:str): | |
import re | |
import nibabel as nib | |
nib.load(datapath) | |
def any2nii(datapath:str,savepath:str): | |
import re | |
import nibabel as nib | |
pass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment