Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision da9badeb9444052b558b6b134b72df5fff0fc277 authored by liangzifei on 09 March 2022, 23:29:32 UTC, committed by GitHub on 09 March 2022, 23:29:32 UTC
Update README.md
1 parent f116deb
  • Files
  • Changes
  • 0360b4c
  • /
  • Code
  • /
  • demo_testingPrep.m
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:da9badeb9444052b558b6b134b72df5fff0fc277
directory badge
swh:1:dir:699a1ad78753f130bee0affcc069dad78b04ec02
content badge
swh:1:cnt:f3465a39ba113af340f5883e8403d8d66eb259ef

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
demo_testingPrep.m
% Testing data preparison by calling MRH_testingPrep.
%After running this demo, the data and label file
% in .mat form like testdata.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 save test data as the following recommended folder.And USER need to
%replace by their own workspace: under \Test_data
work_folder = ['.\Test_Data'];
halfpatch_size = 1;
% sample testing pathces without pixels skip. stride setting 1, sampling
% one-by-one covering entire brains.
stride = 1;
%Only one subject put in the test folder. sample_num is ready to be modified by
%USER to process more subjects using batching
sample_num = 1;
%Only one slice 140 generated here. More slices generation, please specific slice start and end number.
slice_num_start= 140; slice_num_end=140;
% Call testing patches generation function.
[data,label] = MRH_testingPrep(work_folder,halfpatch_size,stride,sample_num,slice_num_start, slice_num_end);
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API