Skip to content
Snippets Groups Projects
Commit dd9cea3b authored by Nicola Vigano's avatar Nicola Vigano
Browse files

gtGetFullImage: added edf header recycling

parent 853082aa
No related branches found
No related tags found
No related merge requests found
function [im, info] = gtGetFullImage(n, parameters)
function [im, info] = gtGetFullImage(n, parameters, info)
% GTGETFULLIMAGE Gets the full image number n
%
% im = gtGetFullImage(n[, parameters])
......@@ -24,5 +24,12 @@ function [im, info] = gtGetFullImage(n, parameters)
dir = pwd();
end
[im, info] = edf_read(fullfile(dir, '1_preprocessing', 'full', sprintf('full%04d.edf',n)));
end % end of function
full_image_name = fullfile(dir, ...
'1_preprocessing', 'full', sprintf('full%04d.edf', n) );
if (exist('info', 'var') && ~isempty(info))
[im, info] = edf_read(full_image_name, [], false, info);
else
[im, info] = edf_read(full_image_name);
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment