Translate images by subpixel amounts

Not for me (just curious, where did you get that idea?):

julia> t = Translation(0.2, -1.4)

julia> imgs = warp(img, t, indices_spatial(img));

If you want something beyond linear interpolation, try e.g.,

imgs = warp(float.(img), t, indices_spatial(img), Quadratic(Flat(OnCell())), 0)

The float may be necessary if img itself has a restrictive eltype, to ensure that you can represent the output appropriately.

3 Likes