|
134 | 134 | text(0.5, 0.75, [' ' fname], 'Units', 'normalized', 'FontName', 'Arial', 'FontSize', 13, 'Interpreter', 'none'); |
135 | 135 |
|
136 | 136 | text(0.5, 0.63, 'Spatial parameters: ', 'Units', 'normalized', 'HorizontalAlignment', 'right', 'FontName', 'Arial', 'FontSize', 13); |
137 | | - text(0.5, 0.63, ' [LR, AP, FH]', 'Units', 'normalized', 'FontName', 'Arial', 'FontSize', 13); |
| 137 | + text(0.5, 0.63, ' [LR, PA, SI]', 'Units', 'normalized', 'FontName', 'Arial', 'FontSize', 13); |
138 | 138 |
|
139 | 139 | tmp = [' ' num2str(MRS_struct.p.voxdim(ii,1)) ' \times ' num2str(MRS_struct.p.voxdim(ii,2)) ' \times ' num2str(MRS_struct.p.voxdim(ii,3)) ' mm^{3}']; |
140 | 140 | text(0.5, 0.51, 'Dimensions: ', 'Units', 'normalized', 'HorizontalAlignment', 'right', 'FontName', 'Arial', 'FontSize', 13); |
|
182 | 182 | img = MRS_struct.mask.(vox{kk}).img{ii}(:); |
183 | 183 | caxis([0 mean(img(img > 0.01)) + 3*std(img(img > 0.01))]); %#ok<*CAXIS> |
184 | 184 | axis equal tight off; |
185 | | - text(10, size(MRS_struct.mask.(vox{kk}).img{ii},1)/2, 'L', 'Color', [1 1 1], 'FontSize', 20); |
186 | | - text(size(MRS_struct.mask.(vox{kk}).img{ii},2) - 20, size(MRS_struct.mask.(vox{kk}).img{ii},1)/2, 'R', 'Color', [1 1 1], 'FontSize', 20); |
| 185 | + text(0.01, 0.5, 'L', 'Color', [1 1 1], 'FontSize', 20, 'Units', 'normalized'); |
| 186 | + text(0.16, 0.95, 'A', 'Color', [1 1 1], 'FontSize', 20, 'Units', 'normalized'); |
| 187 | + text(0.32, 0.5, 'A', 'Color', [1 1 1], 'FontSize', 20, 'Units', 'normalized'); |
| 188 | + text(0.5, 0.95, 'S', 'Color', [1 1 1], 'FontSize', 20, 'Units', 'normalized'); |
| 189 | + text(0.825, 0.95, 'S', 'Color', [1 1 1], 'FontSize', 20, 'Units', 'normalized'); |
| 190 | + text(0.975, 0.5, 'R', 'Color', [1 1 1], 'FontSize', 20, 'Units', 'normalized'); |
187 | 191 | set(hb, 'Position', [0 0.15 1 1]); |
188 | 192 | title(t, 'FontName', 'Arial', 'FontSize', 15, 'Interpreter', 'none'); |
189 | 193 |
|
|
224 | 228 | fullpath = regexprep(fullpath, '/', '_'); |
225 | 229 | end |
226 | 230 |
|
227 | | - [~,metabfile_nopath] = fileparts(MRS_struct.metabfile{ii}); |
228 | | - |
| 231 | + if strcmp(MRS_struct.p.vendor, 'Siemens_rda') |
| 232 | + [~, metabfile_nopath] = fileparts(MRS_struct.metabfile{ii*2-1}); |
| 233 | + else |
| 234 | + [~, metabfile_nopath, ext] = fileparts(MRS_struct.metabfile{ii}); |
| 235 | + if strcmpi(ext, '.gz') |
| 236 | + metabfile_nopath(end-3:end) = []; |
| 237 | + end |
| 238 | + end |
| 239 | + |
229 | 240 | if any(strcmp(listfonts,'Arial')) |
230 | 241 | set(findall(h,'-property','FontName'),'FontName','Arial'); |
231 | 242 | end |
|
0 commit comments