Skip to content
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

FIX: Derive field from SyN displacements using EPI affine #421

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

effigies
Copy link
Member

@effigies effigies commented Jan 9, 2024

Theoretically, a fieldmap in Hz is the number of voxels/second that signal is shifted from the true location. SyN-SDC calculates the shift in mm from the true location. In order to find the equivalent fieldmap, we need the size of the voxels, readout time and phase-encoding direction of the EPI image that is to be corrected.

Previously, we were deriving the fieldmap from the readout time and phase-encoding direction of the EPI image, but the voxel size of the displacement field. This causes an overestimate of the number of voxels to be shifted, and thus exaggerated correction.

Original EPI:

image

Current unwarp:

image

New unwarp:

image

@effigies effigies mentioned this pull request Jan 9, 2024
@effigies effigies marked this pull request as ready for review January 9, 2024 22:19
@effigies
Copy link
Member Author

effigies commented Jan 9, 2024

@mgxd @oesteban This is ready to go.

Copy link
Contributor

@mgxd mgxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 definitely an improvement, although the current unwarping in the images you shared looks much better than in nipreps/fmriprep#3158

@effigies
Copy link
Member Author

👍 definitely an improvement, although the current unwarping in the images you shared looks much better than in nipreps/fmriprep#3158

Agreed. Running tests on one known to produce extreme distortions.

@effigies effigies merged commit 6f6095d into nipreps:master Jan 10, 2024
19 of 20 checks passed
@effigies effigies deleted the fix/syn-scaling branch January 10, 2024 14:57
@effigies effigies mentioned this pull request Jan 10, 2024
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.

3 participants