Hi Mark!
Question 1:
I am working with functional data, and have a question about the sct_fmri_moco algorithm. The output transformation matrices are in the X and Y plane. I am hoping to understand this output a little better.
In other moco implementations of moco there are 6 matricies (X, Y, Z, Rx, Ry, Rz). In the antsSliceRegularizedRegistration documentation it says that the moco is slice-by-slice, then regularized in the z direction.
sct_fmri_moco
, like sct_dmri_moco
, uses the slicereg algorithm, which performs a translation along X and Y on a slice-by-slice basis. If you look at the help of sct_fmri_moco
, it says:
The outputs of the motion correction process are:
- the motion-corrected fMRI volumes
- the time average of the corrected fMRI volumes
- a time-series with 1 voxel in the XY plane, for the X and Y motion direction (two separate files), as required for FSL analysis.
- a TSV file with the slice-wise average of the motion correction for XY (one file), that can be used for Quality Control.
So, there is a TSV file, which shows the average of Tx and Ty across all slices, per volume. That way you can spot aberrant motion for volumes. See example below (for the first 10 volumes):
X |
Y |
3.33002457135005e-06 |
-6.06590395217192e-06 |
-0.020430507354518000 |
-0.05460222822036920 |
0.04756090103723190 |
-0.10960818736168800 |
0.01905056370102960 |
-0.07620355659530390 |
0.044265178434871500 |
-0.021218659940223200 |
0.02033304025641000 |
-0.11795519527067900 |
0.050682700148200300 |
-0.028725411308628900 |
0.023094671931923800 |
-0.12841860053985100 |
0.08334008549293220 |
-0.12726617553537400 |
0.1399040250382250 |
-0.06437511406339410 |
If you want the individual Tx and Ty per slice and per volume, you can use the output moco_params_x.nii.gz and moco_params_y.nii.gz files.
Does this mean that there are no Z shifts in the moco?
Indeed, no z-translation.
Also, are rotations considered?
No. We have implemented it at some point but then discovered a bug (more details here). If that would be a desirable feature, we can reconsider it.
Question 2:
I’m working with cervical MT data, and when using sct_extract_metric I am getting incorrect values for the volumes of the tracts when using the MAP and ML methods. The BIN and WA methods output the proper Size(vox) of the tracts, but the MAP and ML methods both output the total size of the Cord and CSF contour. I’ve checked and the PAM50 registration looks good, and the all the labels are correct.
Yup! This is a known bug, recently reported here and fixed 2 days ago in this PR.. The fix is available in the git-master
version of SCT, and will be available in the next stable release.
Cheers,
Julien