Doing this downsampling here is pretty ugly, let's not do it
Resampling version of the local offset estimation application function.  I don't think this works yet.
Iterative estimation.  Seems to work.  It's slow.