-
Notifications
You must be signed in to change notification settings - Fork 569
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
The dimension of warp in register.py #544
Comments
@FindSmart can you give us the command you run with register.py, and what exactly is [2, 480, 640] ? That sounds like the warp itself --- (x, y) displacement --- not the warped image |
Thanks for your reply!
The output 'warp' is [2,480,640], and it really means (x, y) displacement. I have just come into contact with this field, so I don’t really understand these. I want to apply the warp image to the original image for registration, should i move the x and y pixels of the original image according to the warp separately? |
a warp field tells you how to move pixels/voxels in one image to match up with the other one. Our register.py script will apply the warp to one image and warp it. It outputs (saves) both the warp and the warped image, so you should already have what you need from it. In general, to warp one
|
Hi,
The pictures I use are two-dimensional, with a pixel size of 480*640. After deep learning, I use register.py to obtain the displacement field (warp). When I apply the displacement field to the original image, I find that the ndarray of the warp image is (2, 480, 640), what displacement do the two layers here represent?
Thank you so much!
The text was updated successfully, but these errors were encountered: