%A=ovesamud(loadframe(1));
%B=ovesamud(loadframe(3));
A=undsamlef(loadframe(1));
B=undsamlef(loadframe(3));

hold off;clg;tvs(A);
title('Lookpainting reference frame')
drawnow
grid;
drawnow
hold on;
plot(A(120,:),'r');
drawnow
hold off
colormap('cool')
drawnow

hold off;clg;tvs(B); grid; hold on; plot(B(120,:),'r');hold off
hold off;clg;tvs(A);
title('Lookpainting comparison frame')
drawnow
grid;
drawnow
hold on;
plot(A(120,:),'r');
drawnow
hold off
colormap('cool')
drawnow

p_trans=est_trans_fft2(A,B); % now takes B to A
p_now=est_pchirp2m(A,B,3,3,p_trans,1);

