资源简介
MATLAB & Bash Scripts for analyzing neurodata acquired from epilepsy patients
代码片段和文件信息
function varargout = dicm2nii(src dataFolder varargin)
% DICM2NII converts dicom files into NIfTI or img/hdr files.
%
% DICM2NII(dcmSource niiFolder outFormat MoCoOption subjName)
%
% The input arguments are all optional:
% 1. source file or folder. It can be a zip or tgz file a folder containing
% dicom files or other convertible files. It can also contain wildcards
% like ‘run1_*‘ for all files start with ‘run1_‘.
% 2. folder to save result files.
% 3. output file format:
% 0 or ‘nii‘ for single nii uncompressed.
% 1 or ‘nii.gz‘ for single nii compressed (default).
% 2 or ‘hdr‘ for hdr/img pair uncompressed.
% 3 or ‘hdr.gz‘ for hdr/img pair compressed.
% 4 or ‘3D.nii‘ for 3D nii uncompressed (SPM12).
% 5 or ‘3D.nii.gz‘ for 3D nii compressed.
% 6 or ‘3D.hdr‘ for 3D hdr/img pair uncompressed (SPM8).
% 7 or ‘3D.hdr.gz‘ for 3D hdr/img pair compressed.
% 4. MoCo series options:
% 0 create files for both original and MoCo series.
% 1 ignore MoCo series if both present (default).
% 2 ignore original series if both present.
% Note that if only one of the two series is present it will be created
% always.
% 5. subject name for the data. The code can do only one subject each time.
% If you have a folder or zip/tgz file for multiple subjects (not
% recommended) you can specify which subject to convert with the 5th input.
% The name should be the Patient Name entered at scanner console for in
% format of LastName^FirstName such as Smith^John or simply the Last name
% if no First name was provided to the console. If you already have mixed
% subject data in a folder you can let the code return the unconverted
% subject names in the second output argument and then provide each of
% subjects as the 5th input to convert data into specific subject folder
% (see example below).
% A better method to deal with mixed subject data is to use SORT_DICM to
% sort files into different subject folder then convert one by one.
%
% The optional output are converted (1st) and unconverted (2nd) PatientName.
%
% Typical examples:
% dicm2nii; % bring up user interface if there is no input argument
% dicm2nii(‘D:/myProj/zip/subj1.zip‘ ‘D:/myProj/subj1/data‘); % zip file
% dicm2nii(‘D:/myProj/subj1/dicom/‘ ‘D:/myProj/subj1/data‘); % folder
%
% Less useful examples:
% dicm2nii(‘D:/myProj/dicom/‘ ‘D:/myProj/subj2/data‘ [] [] ‘subj2‘);
% dicm2nii(‘D:/myProj/dicom/run2*‘ ‘D:/myProj/subj/data‘);
% dicm2nii(‘D:/dicom/‘ ‘D:/data‘ ‘3D.nii‘); % SPM style files
%
% Example to deal with multiple subjects:
% [converted otherSubj] = dicm2nii(‘D:/myProj/dicom/‘ ‘D:/myProj/subj1/data‘);
% movefile(‘D:/myProj/subj1‘ [‘D:/myProj/‘ converted]); % rename folder
% In case of multiple subjects above command will convert one of the su
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-01-25 18:05 EpiSurg-master\
文件 62 2017-01-25 18:05 EpiSurg-master\.gitignore
目录 0 2017-01-25 18:05 EpiSurg-master\DICM2NII\
文件 81439 2017-01-25 18:05 EpiSurg-master\DICM2NII\dicm2nii.m
文件 316 2017-01-25 18:05 EpiSurg-master\DICM2NII\dicm2nii_gui_para.mat
文件 46448 2017-01-25 18:05 EpiSurg-master\DICM2NII\dicm_dict.m
文件 34182 2017-01-25 18:05 EpiSurg-master\DICM2NII\dicm_hdr.m
文件 4810 2017-01-25 18:05 EpiSurg-master\DICM2NII\dicm_img.m
文件 38889 2017-01-25 18:05 EpiSurg-master\DICM2NII\nii_tool.m
文件 59992 2017-01-25 18:05 EpiSurg-master\DICM2NII\pigz
文件 241865 2017-01-25 18:05 EpiSurg-master\DICM2NII\pigz.win
文件 119888 2017-01-25 18:05 EpiSurg-master\DICM2NII\pthreadGC2.win
文件 5586 2017-01-25 18:05 EpiSurg-master\DICM2NII\rename_dicm.m
文件 3024 2017-01-25 18:05 EpiSurg-master\DICM2NII\sort_dicm.m
目录 0 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\
文件 288 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\binaryQuery.m
文件 2629 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\checkCfg.m
文件 120 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\checkFile.m
文件 2736 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\csv2Cell.m
文件 3203 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\csv2CellOneCol.m
文件 3809 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\csv2CellQ2.m
文件 855 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\findStrInCell.m
文件 363 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\findTpt.m
文件 748 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\getFsurfSubDir.m
文件 7064 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\mgrid2matlabORIG.m
文件 222 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\nearestValId.m
文件 282 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\rmChar.m
文件 777 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\rmSubstring.m
文件 489 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\universalNo.m
文件 440 2017-01-25 18:05 EpiSurg-master\EPISURG_MATLAB_ADMIN\universalYes.m
目录 0 2017-01-25 18:05 EpiSurg-master\FSURF_MATLAB\
............此处省略293个文件信息
- 上一篇:KNN算法对MNIST数据集分类
- 下一篇:虹膜识别matlab程序源代码
相关资源
- 四元数MATLAB工具箱
- 代理模型MATLAB工具箱FAC Viana
- 四元数(quaternion)的Matlab工具箱
- 双聚类(Bi-clustering)Matlab工具箱
- “群体智能算法”Matlab工具箱 Versio
- 多任务高斯过程模型 Matlab工具箱 包括
- EWT 经验小波分解 matlab工具箱 toolbox
- DACE和OODACE,krigingMATLAB工具箱.zip
- 克里金插值法MATLAB工具箱
- RBMCDAbox - Matlab Toolbox of Rao-Blackwellize
- 降维技术matlab工具箱
- cplex 12.4 MATLAB工具箱
- 谢菲尔德(Sheffield)遗传算法工具箱
- 贝叶斯网络工具箱MATLAB工具箱
- chirplet变换matlab工具箱大全
- 聚类数指标matlab工具箱
- 支持向量机matlab工具箱含资料及gui模
- 最新版,最小二乘支持向量机2010年
- 面向Matlab工具箱的神经网络理论与应
- MATLAB工具箱大全,各种算法
- GPS仿真-matlab工具箱
- 一个社团发现的MATLAB工具箱
- matlab工具箱LMI使用
- 两个处理三角网格文件(三维)的m
- HHT希尔伯特黄变换 MATLAB工具箱174211
- PCA LDA LLE各种降维方法Matlab工具箱
- MATLAB工具箱robotics toolbox 9.10
- BNT-MATLAB工具箱
- 随机森林matlab工具箱及其它实现方法
- CNN卷积神经网络MATLAB工具箱中文注释
评论
共有 条评论