ENH: Make function const correct

TransformResample does not modify the transform, so it should be
a const pointer.