ANTsX / ANTs

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

Motion correction of time-series with multiple contrasts #1150

Closed dangom closed 3 years ago

dangom commented 3 years ago

Hi all,

I'm trying to motion correct a T1w EPI time-series, where the acquisition order of the slices is shuffled in each repetition, such that in each volume the slices have slightly different contrasts. As you can appreciate in the gif below, this change in contrast leads to an apparent "motion", characterized by a moving "nulling/dark band".

t1wEPI

Some ideas that I have tried have included:

The best results I have so far are the output time-series looking pretty much like the input series, i.e., not affected by the dark band but also not correcting for the actual motion. These were achieved with the following command:

fslsplit T1wEPI.nii.gz  # will output vol*.nii.gz
fslmaths T1wEPI.nii.gz -Tmean T1wEPI_tmean.nii.gz

fixed=T1wEPI_tmean.nii.gz

for moving in vol*.nii.gz; do

antsRegistration --dimensionality 3 \
                            --float 0 \
                            --output [${moving}reg,${moving}reg.nii.gz] 
                            --interpolation LanczosWindowedSinc \
                            --winsorize-image-intensities [0.35,0.55] \
                            --use-histogram-matching 0  \
                            --transform Rigid[0.1] \
                                --metric MI[$fixed,$moving,1,32,Random,0.75] \
                                --convergence [1000x500x250x100,1e-6,10] \
                                --shrink-factors 8x4x2x1 \
                                --smoothing-sigmas 3x2x1x0vox & ;
done

I decided not to use the antsMotionCorr tool because antsRegistration gave me more flexibility (I can winsorize image intensities, for example).

Would you guys have any more ideas that I could try?

Thank you again.

cookpa commented 3 years ago

That's a tough problem. You could try a metric mask on the moving image to exclude the dark slices.