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

Save the parameters of registration operation #2

Open
zhenweishi opened this issue Mar 29, 2023 · 1 comment
Open

Save the parameters of registration operation #2

zhenweishi opened this issue Mar 29, 2023 · 1 comment

Comments

@zhenweishi
Copy link

Hi, developers

Thanks for your efforts to make it work in python. I have a practical question. If your package allows users to save the parameters used in the previous registration, then use it in the next step. Let me give an instance as follows:

I have three files (fixed image, moving image, and a region mask in moving image). I want to firstly register moving image to fixed image, then the mask to fixed image using the same parameters. Then I will have a pair of registered images, and also a correct mask. Is it possible in your package? it is the same as described in DeedsBCV:

  1. Run deformable deeds
    We will use the affine matrix "affine_2_4_matrix.txt" to initialise the deformable registration. The output filenames are generated using the base "nonlinear_2_4".

Note that the input images are the same as before, but we can optionally pass the segmentation of the moving image with -S. We will therefore obtain two transformed scans nonlinear_2_4_deformed.nii.gz (the CT scan) and nonlinear_2_4_deformed_seg.nii.gz (the warped segmentation). The displacements are stored (for all control points) in _displacements.dat:
./deedsBCV -F img2_res.nii.gz -M img4_res.nii.gz -O nonlinear_2_4 -A affine_2_4_matrix.txt -S seg4_res.nii.gz

Looking forward to your reply.

@wiktorowski211
Copy link
Owner

Good morning,
that is a fairly common scenario, but as it was not needed for the experiments we were conducting it was not implemented. But we heavy appreciate any kind of contribution.

Regards

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

2 participants