-
Notifications
You must be signed in to change notification settings - Fork 26
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: Improve support of 4D in sdcflows.interfaces.bspline.ApplyCoeffsField
#234
Conversation
20faba2
to
01abc29
Compare
Okay, this is starting to look pretty good. I'm testing the new code within fMRIPrep and the feeling is optimistic. It is very cool that I might need to add some little changes here and there as fMRIPrep continues, but overall this is ready for your judgment. |
Codecov Report
@@ Coverage Diff @@
## master #234 +/- ##
==========================================
- Coverage 93.66% 89.89% -3.78%
==========================================
Files 24 25 +1
Lines 1673 1771 +98
Branches 191 205 +14
==========================================
+ Hits 1567 1592 +25
- Misses 81 150 +69
- Partials 25 29 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This overall looks sensible to me. Having a bit of trouble keeping track of which way the HMC transforms are going. I kind of expected more affine inversions, but I'm assuming that you're keeping proper track...
cc54463
to
3dda866
Compare
1fa4a6d
to
234d141
Compare
332c7ee
to
eb93721
Compare
eb93721
to
8ca1e79
Compare
The following steps are: i. Adding support to prepend additional transforms (e.g., epi-to-anatomical, anatomical-to-standard) As the three steps require the foundations set in this PR, I think the best path forward is merging this one. I'm aware I'm reducing coverage by ~4%, so I'll think about adding meaningful tests. |
This PR revises the implementation of the core unwarping interface, by enabling
sdcflows.transforms.B0FieldTransform
to project the coefficients representing the fieldmap into each volume of the input through the head-motion correction matrix, thereby moving the fieldmap with the head motion of that frame and hence applying time-step-wise correction.I'm not confident this will really add substantial accuracy, but theoretically is the way to go. Given the sophistication (and the pervasive interpolation for each frame of the bspline field), this is not implemented elsewhere (except, perhaps, for applyTOPUP).
Resolves: #233.
Initiated-by: nipreps/fmriprep#2210.