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: apply transform to single slice of time series #1800

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

cookpa
Copy link
Member

@cookpa cookpa commented Oct 2, 2024

A common use case is to register a time series to a scalar reference, then apply the warp to each volume. Sometimes, users will have different transforms for each volume (say, motion correction in fMRI). Other times, the time series might be very large after resampling into the fixed space.

This commit adds an option --time-index, which allows the user to select a particular volume. This is then extracted and transformed as a scalar image.

Fixes #1555

A common use case is to register a time series to a scalar reference,
then apply the warp to each volume. Sometimes, users will have different
transforms for each volume (say, motion correction in fMRI). Other times,
the time series might be very large after resampling into the fixed space.

This commit adds an option --time-index, which allows the user to select
a particular volume. This is then extracted and transformed as a scalar image.
@cookpa
Copy link
Member Author

cookpa commented Oct 2, 2024

Relevant also to dealing with very large images like in #1681

@cookpa cookpa requested a review from ntustison October 2, 2024 20:49
@ntustison
Copy link
Member

Thanks @cookpa

@cookpa cookpa merged commit 1892fef into master Oct 3, 2024
1 check passed
@cookpa cookpa deleted the aatIndex branch October 3, 2024 12:36
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.

Enable antsApplyTransforms to select one volume in a 4D file to resample
2 participants