Skip to content
Snippets Groups Projects
Commit 95111f07 authored by Wolfgang Ludwig's avatar Wolfgang Ludwig
Browse files

reduce default settings for rotation angle in findshifts3

parent e3c99c50
No related branches found
No related tags found
No related merge requests found
......@@ -106,11 +106,11 @@ function sfKeyPress(varargin)
if strcmp(c.Modifier,'shift')
app.hshift=app.hshift+10/app.zoom;
elseif strcmp(c.Modifier,'control')
app.rot=app.rot+1;
app.rot=app.rot+0.2;
app.im1=imrotate(app.im1nr,app.rot,'bicubic','crop');
elseif strcmp(c.Modifier,{'shift' 'control'})
app.rot=app.rot+0.1;
app.rot=app.rot+0.02;
app.im1=imrotate(app.im1nr,app.rot,'bicubic','crop');
end
......@@ -124,11 +124,11 @@ function sfKeyPress(varargin)
if strcmp(c.Modifier,'shift')
app.hshift=app.hshift-10/app.zoom;
elseif strcmp(c.Modifier,'control')
app.rot=app.rot-1;
app.rot=app.rot-0.2;
app.im1=imrotate(app.im1nr,app.rot,'bicubic','crop');
elseif strcmp(c.Modifier,{'shift' 'control'})
app.rot=app.rot-0.1;
app.rot=app.rot-0.02;
app.im1=imrotate(app.im1nr,app.rot,'bicubic','crop');
end
......@@ -266,9 +266,9 @@ function sfUpdateFigure
imshow(app.im0+im_tmp,app.clima);
title(sprintf('vertical shift: %.2f\t horizontal shift: %.2f',app.vshift+app.voffset,app.hshift+app.hoffset));
case 'subtract'
%imagesc(app.im0-im_tmp,app.clims);
imagesc(app.im0-im_tmp,app.clims);
if app.firsttime
app.h_im=imshow(app.im0-im_tmp,app.clims);
app.h_im=imagesc(app.im0-im_tmp,app.clims);
%app.firsttime=false;
else
set(app.h_im,'cdata',app.im0-im_tmp)
......
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