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 Registration feature request #820

Closed
sm-ak-r33 opened this issue Jun 4, 2024 · 3 comments
Closed

Image Registration feature request #820

sm-ak-r33 opened this issue Jun 4, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@sm-ak-r33
Copy link

  • TIA Toolbox version: pip installed latest one
  • Python version: 3.9
  • Operating System: Windows 10

Description

I want to get the transformation matrix out of the image registration process so that after the registration is done, if I multiply the moving image with the matrix, I get the registered image without involving the fixed image in layout.

What I Did

I tried generating the matrix but failed, is it even possible?

@Abdol Abdol self-assigned this Jun 14, 2024
@Abdol Abdol added the enhancement New feature or request label Jun 14, 2024
@Abdol
Copy link
Collaborator

Abdol commented Jun 19, 2024

Hi @sm-ak-r33. If I understand your question correctly, you can use the DFBRegister.register() method, which returns the transformation matrix as a numpy array. Here is an illustrative snippet:

from tiatoolbox.tools.registration.wsi_registration import DFBRegister
df = DFBRegister()
dfbr_transform = df.register(dfbr_fixed_image, dfbr_moving_image, fixed_mask, moving_mask)

You can also refer to our WSI registration notebook for a full example.

@sm-ak-r33
Copy link
Author

Thanks so much for your response. Actually, I was trying to infer, if note a specific nuclei or point in the fixed image and multiply that point's co-ordinates with the transformation matrix would I get the same nuclei in the moving image or not. I will let you know if that works.

@Abdol
Copy link
Collaborator

Abdol commented Jun 28, 2024

@sm-ak-r33 let us know if you still need help with the above by re-opening this issue. Closing for now...

@Abdol Abdol closed this as completed Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants