Skip to content

ENH: apply transform to single slice of time series#1800

Merged
cookpa merged 1 commit intomasterfrom
aatIndex
Oct 3, 2024
Merged

ENH: apply transform to single slice of time series#1800
cookpa merged 1 commit intomasterfrom
aatIndex

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
@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