def AffineTranslate(dx,dy,new_size,interpolate=BILINEAR):
    matrix = array([[1,0,dx],[0,1,dy],[0,0,1]],'d')

    return AffineTransform(matrix,new_size,interpolate)
Create a simple translation transform
dataset/ETHPy150Open bolme/pyvision/src/pyvision/types/Affine.py/AffineTranslate