ANTsX / ANTs

Advanced Normalization Tools (ANTs)
Apache License 2.0
1.21k stars 381 forks source link

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

Closed cookpa closed 1 month ago

cookpa commented 1 month ago

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

cookpa commented 1 month ago

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

ntustison commented 1 month ago

Thanks @cookpa