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

Having trouble with a standard LDDMM registration, example provided #18

Open
ghost opened this issue Jan 15, 2021 · 0 comments
Open

Having trouble with a standard LDDMM registration, example provided #18

ghost opened this issue Jan 15, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 15, 2021

I am running the following script to perform a simple LDDMM registration between two images:

I0_obj = Image.open('I0.tif').convert('L')
I0 = np.array(I0_obj)

I1_obj = Image.open('I1.tif').convert('L')
I1 = np.array(I1_obj) 

transform = ardent.Transform()
transform.register(I0, I1, track_progress_every_n=10)

forward_warped = transform.transform_image(subject=I0, deform_to='target')
forward_warped = Image.fromarray(np.uint8(forward_warped))
forward_warped.show()

This displays the following warped template as output, which does not appear to be anywhere near my desired I1 target.
output
For reference, here are my original I0 and I1 (template and target, respectively):
I0 I1
From the images above, it's clear that some deformation is taking place, but it does not seem to complete. What might be the issue here? I've attempted using a larger num_iterations and increasing the sigma_regularization, neither of which had any effect on the output.

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

0 participants