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

WIP: Add label image registration. #742

Closed
wants to merge 1 commit into from
Closed

WIP: Add label image registration. #742

wants to merge 1 commit into from

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.

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

@coveralls
Copy link

Coverage Status

coverage: 82.515% (-2.5%) from 85.061%
when pulling 1b4662b on LabelReg
into 96ba4f7 on master.

@ntustison ntustison closed this Nov 23, 2024
@ntustison
Copy link
Member Author

Start over.

@ntustison ntustison deleted the LabelReg branch November 23, 2024 05:35
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.

2 participants