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

ENH: Add label iamge registration and tests. #743

Merged
merged 2 commits into from
Nov 23, 2024
Merged

ENH: Add label iamge registration and tests. #743

merged 2 commits into from
Nov 23, 2024

Conversation

ntustison
Copy link
Member

@stnava , @cookpa --- I was going to send an email regarding this work but figured it would be easiest to put all the information in a possible pull request.

With the segmentation networks developed over at ANTsXNet, I've been leveraging that information for registration and I figured the functionality might be useful for the community. Basic usage takes respective sets of fixed and label images, converts them to sets of single label images and calculates the centers-of-mass of all the labels. Those centers-of-mass are used to quickly compute a linear transform using ants.fit_transform_to_paired_points. The single label images (and optional intensity images) are used as input to one of the antsRegistrationSyN* deformable-only calls. I've also been playing with this for masked lesion registration.

Also, add test.

Let me know if you have a problem with this pull request. Alternatively, I can put it over in ANTsPyNet.

@coveralls
Copy link

coveralls commented Nov 23, 2024

Coverage Status

coverage: 85.003% (-0.06%) from 85.061%
when pulling 76857fc on LabelReg2
into 96ba4f7 on master.

@stnava
Copy link
Member

stnava commented Nov 23, 2024

this is great! been on the to do list for a long time.

@ntustison
Copy link
Member Author

Thanks @stnava . I'll merge this in just a sec and then I'll work on the tutorial example and implementing the ANTsR analog.

@ntustison ntustison merged commit 6b220c5 into master Nov 23, 2024
2 checks passed
@ntustison ntustison deleted the LabelReg2 branch November 23, 2024 17:57
@ntustison
Copy link
Member Author

Self-contained example

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

Successfully merging this pull request may close these issues.

3 participants