Skip to content
Snippets Groups Projects
Commit 2b324e45 authored by Laura Nervo's avatar Laura Nervo Committed by Nicola Vigano
Browse files

EDF: finally fixed roi


Signed-off-by: default avatarNicola Vigano <nicola.vigano@esrf.fr>

git-svn-id: https://svn.code.sf.net/p/dct/code/trunk@127 4c865b51-4357-4376-afb4-474e03ccb993
parent ea1aa2e1
No related branches found
No related tags found
No related merge requests found
......@@ -96,9 +96,9 @@ function [img, varargout] = edf_read(filename, GT_bb, dispmes, info)
fclose(fid);
%% Check if the file was corrupted
if count ~= (info.dim_1*info.dim_2*info.dim_3)
if count ~= (dim_1*dim_2*info.dim_3)
report_string = [ 'File ' filename ' contains less data:\n' ...
' Expected: ' num2str(info.dim_1*info.dim_2*info.dim_3) ...
' Expected: ' num2str(dim_1*dim_2*info.dim_3) ...
', Got: ' num2str(count)];
Mexc = MException('EDF:fileCorrupted', report_string )
throw(Mexc)
......@@ -106,7 +106,7 @@ function [img, varargout] = edf_read(filename, GT_bb, dispmes, info)
%% Let's reshape to the real format of the matrix
disp(['From total elements: ' num2str(size(img,1)) ...
' to (' num2str(info.dim_1) ',' num2str(info.dim_2) ...
' to (' num2str(dim_1) ',' num2str(dim_2) ...
',' num2str(info.dim_3) ') matrix.'])
img = reshape(img, dim_1, dim_2, info.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