Documentation‎ > ‎FAQ‎ > ‎

How do i do orientation correlation.

posted Nov 23, 2015, 3:47 AM by Aslak Grinsted   [ updated Sep 3, 2018, 4:01 AM by Alexandra Messerli ]
Orientation correlation has been added to the templatematch function. It often out performs NCC, and has good performance on Landsat 7 images with SLC off.

You can also do it manually, which used to be the solution for doing it. ImGRAFT can also do orientation correlation if you apply a simple "orientation" pre-processing step of the images.  Here's how you might implement that:

forient=@(A)exp(i*atan2(imfilter(A,[1 0 -1],'replicate'),imfilter(A,[1;0;-1],'replicate'))); 

oA=forient(A);
oB=forient(B);

[du,dv]=templatematch(oA,oB,'method','CCF')

Reference: 


CCF-O
Comments