Revision da9badeb9444052b558b6b134b72df5fff0fc277 authored by liangzifei on 09 March 2022, 23:29:32 UTC, committed by GitHub on 09 March 2022, 23:29:32 UTC
1 parent f116deb
demo_trainingPrep_Trans.m
% Training data preparison by calling MRH_trainingPrep_Trans.
%After running this demo, the data and label file
% in .mat form like traindataJG_allMRIs_fluo.mat data label -v7.3; will be saved in
% current workspace.
% - Zifei Liang (zifei.liang@nyumc.org)
% Using code please refer our work:
% Inferring Maps of Cellular Structures from MRI Signals using Deep Learning
% https://www.biorxiv.org/content/10.1101/2020.05.01.072561v1
clc;clear; close all;
% Please replace by the training data location by USER
work_folder = ['.\Train_Data\Subj\'];
halfpatch_size = 1;
stride0 = 20;
% location of the target histology .img. Please replace the location by
% under \Train_Data. Here is the example of MBP
% Any other histology please refer under \Train_Data
myelin_img = load_untouch_nii(['Train_Data\MRI_myelin\Myelin42_to_P60.img']);
[data,label] = MRH_trainingPrep_Trans(work_folder,halfpatch_size,stride0, myelin_img);

Computing file changes ...