Skip to content
Snippets Groups Projects
Commit 60ea9f35 authored by preischig's avatar preischig
Browse files

edf_write: deleted warning message about file size; modified help.

The warning was unnecessary and it may hinder important other info.

Signed-off-by: default avatarpreischig <preischig@xnovotech.com>
parent 5ebce938
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,10 @@ function edf_write(data, filename, info, minimal) ...@@ -5,6 +5,10 @@ function edf_write(data, filename, info, minimal)
% %
% WARNING! THESE IMAGES DO NOT NEED TRANSPOSING BEFORE WRITING! % WARNING! THESE IMAGES DO NOT NEED TRANSPOSING BEFORE WRITING!
% %
% Any data dimension provided in the fields 'dim_1','dim_2','dim_3' of
% the header 'info' will be overwritten by the actual data sizes.
%
%
% INPUT: % INPUT:
% data = <anytype> Image data to write in the EDF file. The datatype % data = <anytype> Image data to write in the EDF file. The datatype
% of the EDF file will be the same as the Matlab % of the EDF file will be the same as the Matlab
...@@ -64,10 +68,7 @@ function edf_write(data, filename, info, minimal) ...@@ -64,10 +68,7 @@ function edf_write(data, filename, info, minimal)
error('EDF:bad_data_format', 'Unsupported "%s" datatype', class(data)); error('EDF:bad_data_format', 'Unsupported "%s" datatype', class(data));
end end
end end
if any(isfield(edfinfo,{'dim_1', 'dim_2', 'dim_3'}))
disp('Overwriting dimensions found in info structure with those from data')
end
[edfinfo.dim_2, edfinfo.dim_1, edfinfo.dim_3] = size(data); [edfinfo.dim_2, edfinfo.dim_1, edfinfo.dim_3] = size(data);
edfinfo.size = edfinfo.dim_2 * edfinfo.dim_1 * edfinfo.dim_3; edfinfo.size = edfinfo.dim_2 * edfinfo.dim_1 * edfinfo.dim_3;
......
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