Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image is shifted out of frame #37

Open
jlshin opened this issue Aug 18, 2020 · 0 comments
Open

Image is shifted out of frame #37

jlshin opened this issue Aug 18, 2020 · 0 comments

Comments

@jlshin
Copy link

jlshin commented Aug 18, 2020

if tvec[0] != 0 or tvec[1] != 0:
dest0 = ndii.shift(dest0, tvec, order=order, mode=mode, cval=bgval)
bg = np.zeros_like(img) + bgval
dest = utils.embed_to(bg, dest0)

I ran into an issue where the shift applied dest0 shifted my image out of the frame resulting in a registered image that appears cropped. I moved lines 566-7 to after line 570 so that the shift operates on the dest variable after it has been embedded into the new background. Although this solution worked for my example, I am unsure if it will work in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant