Wow, this is great. I'm trying to get similar results for landslide displacements using DEMs quite some time now. And this is faster, more reliably and gave me results straight ahead. Thanks for this. Now I have to modify it a bit for subpixel displacements. The reverse matching sort out nicely mismatches in my case. Is there any reference I can use when I include this in my thesis?
Thanks a lot. I searched ages for something simple to remove a linear planar fit from my 2d matrix. And now I can even easily remove higher polynomal orders. I use it before doing image crosscorellation with the dftregistration.