We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e55cb commit 0aee404Copy full SHA for 0aee404
src/utils/removeSpmPrefix.m
@@ -0,0 +1,10 @@
1
+function image = removeSpmPrefix(image, prefix)
2
+ %
3
+ % (C) Copyright 2019 CPP ROI developers
4
+
5
+ basename = spm_file(image, 'basename');
6
+ tmp = spm_file(image, 'basename', basename(length(prefix) + 1:end));
7
+ movefile(image, tmp);
8
+ image = tmp;
9
10
+end
0 commit comments