function plotimg(f, g, rowshft, colshft)

figure(1);
subplot(3,1,1);
imagesc(f)
axis('square')
colormap(gray)
subplot(3,1,2);
imagesc(g)
axis('square')
colormap(gray)
subplot(3,1,3);
plot(colshft, rowshft, 'x');
sze = size(f);
axis([0 sze(1) 0 sze(2)]);
axis('square')

