Mon, 18 Nov 2019 15:13:04 -0500
consistent signs
src/Translate.jl | file | annotate | diff | comparison | revisions |
--- a/src/Translate.jl Mon Nov 18 11:30:12 2019 -0500 +++ b/src/Translate.jl Mon Nov 18 15:13:04 2019 -0500 @@ -127,8 +127,8 @@ (bx, by) = size(b) # Translation from target to source coordinates - vxʹ = v[1] + (imx-bx)/2 - vyʹ = v[2] + (imy-by)/2 + vxʹ = (imx-bx)/2 - v[1] + vyʹ = (imy-by)/2 - v[2] # Target image indices within source image px = ceil(Int, max(1, vxʹ + 1) - vxʹ)