Skip to content
Snippets Groups Projects
Commit 093b7260 authored by Andrew King's avatar Andrew King
Browse files

Allow non 2048x2048 maps to be written


Signed-off-by: default avatarAndrew King <andrew.king@esrf.fr>
parent 2db284b0
No related branches found
No related tags found
No related merge requests found
......@@ -13,16 +13,17 @@ function distortion_write(fname,mapx,mapy)
% same pixel in the original image (thus the displacement field defined on
% the original - and NOT on the undistorted - domain).
%
% Andy 3/2/2014 - allow non 2048x2048 maps to be written, as we can use
% these
if size(mapx)~=[2048 2048]
disp('ERROR! MAPhor size has to be 2048*2048.')
return
disp('Warning! MAPhor size should be 2048*2048.')
disp('continuing...')
end
if size(mapy)~=[2048 2048]
disp('ERROR! MAPver size has to be 2048*2048.')
return
disp('Warning! MAPver size should be 2048*2048.')
disp('continuing...')
end
fid = fopen(fname,'wb');
......
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