|
239 | 239 | end |
240 | 240 |
|
241 | 241 | else % annotation is blank - no info on method |
242 | | - warning('no reconstruction method information found - invalid BIDS metadata') |
243 | | - info.ReconMethodParameterLabels = {'lower_threshold', 'upper_threshold'}; |
244 | | - info.ReconMethodParameterUnits = {'keV', 'keV'}; |
245 | | - info.ReconMethodParameterValues = [mh.lwr_true_thres, mh.upr_true_thres]; |
| 242 | + if isfield(info.ReconMethodName) % user provided |
| 243 | + [info.ReconMethodName,i,s] = get_recon_method(deblank(info.ReconMethodName)); |
| 244 | + if ~isempty(i) && ~isempty(s) |
| 245 | + info.ReconMethodParameterLabels = {'iterations', 'subsets', 'lower_threshold', 'upper_threshold'}; |
| 246 | + info.ReconMethodParameterUnits = {'none', 'none', 'keV', 'keV'}; |
| 247 | + info.ReconMethodParameterValues = [str2double(i), str2double(s), mh.lwr_true_thres, mh.upr_true_thres]; |
| 248 | + else % some method without iteration and subset e.g. back projection |
| 249 | + info.ReconMethodParameterLabels = {'lower_threshold', 'upper_threshold'}; |
| 250 | + info.ReconMethodParameterUnits = {'keV', 'keV'}; |
| 251 | + info.ReconMethodParameterValues = [mh.lwr_true_thres, mh.upr_true_thres]; |
| 252 | + end |
| 253 | + else |
| 254 | + warning('no reconstruction method information found - invalid BIDS metadata') |
| 255 | + info.ReconMethodParameterLabels = {'lower_threshold', 'upper_threshold'}; |
| 256 | + info.ReconMethodParameterUnits = {'keV', 'keV'}; |
| 257 | + info.ReconMethodParameterValues = [mh.lwr_true_thres, mh.upr_true_thres]; |
| 258 | + end |
246 | 259 | end |
247 | 260 |
|
248 | 261 | else % no info on method |
|
0 commit comments