Skip to content
Snippets Groups Projects
Commit 295ce53a authored by Stephan Hilb's avatar Stephan Hilb
Browse files

fix axes handling

parent 1c9eb0ea
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ end ...@@ -16,7 +16,7 @@ end
function warp_backwards(img, u) function warp_backwards(img, u)
d = ndims(img) d = ndims(img)
axes(img) == axes(u)[2:end] && d == size(u, 1) || axes(img) == axes(u)[2:end] && 1:d == axes(u, 1) ||
throw(ArgumentError("invalid dimensions")) throw(ArgumentError("invalid dimensions"))
res = similar(img) res = similar(img)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment