A=loadraw('/mas/disks/vision/vm3/TextureHeads/VideoOrbits/TrucksInVassarStreetGarage/deleteme2',512,640);
B=loadraw('/mas/disks/vision/vm3/TextureHeads/VideoOrbits/TrucksInVassarStreetGarage/deleteme3',512,640);

f=[1 1]          % quick test
f=conv(f,f);
f=conv(f,f);
f=conv(f,f)

Af=filt2d(A,f);
Bf=filt2d(B,f);
Au=Af(1:4:512,1:4:640);
Bu=Bf(1:4:512,1:4:640);
Auf=filt2d(Au,f);
Buf=filt2d(Bu,f);

p=est_pchirp2r(Auf,Buf,6);

