added affine comparison to resampling.py