You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to adapt the existing workflow for fieldmap correction to include the following changes:
Make the number of main sequence volumes extracted configurable:
Introduce a parameter (e.g., num_volumes) that specifies how many volumes to extract from the main sequence.
The default should be 5, but this should be adjustable via the settings.ini file (and pipeline parameter as fallback).
Replace pick_volume with logic for multi-volume extraction and averaging:
Use fsl.ExtractROI to extract the first num_volumes from the main sequence.
Use fsl.MeanImage to compute the mean of these extracted volumes for noise reduction.
Average the fieldmap sequence:
Use fsl.MeanImage to compute the mean of all volumes in the fieldmap.
Combine averaged images into a 4D file:
Use fsl.Merge to merge the averaged images into a 4D file.
Full sequence correction:
Ensure that the distortion field estimated by TOPUP is applied to the entire main functional sequence, not just the extracted volumes.
Update the configuration file (settings.ini):
Add a new key, e.g., num_volumes_to_extract, with a default value of 5:
[FieldmapCorrection]num_volumes_to_extract = 5
Ensure this value is read from the configuration file and passed into the workflow as a parameter.
Retrieve image parameters from json
Currently, the fieldmap correction workflow retrieves the encoding direction, total readout time and repetition time, through user-specified inputs. To improve automation and reduce user input errors, it would be beneficial to retrieve these values directly from the JSON metadata. If values are missing in the metadata, then try to gather the missing values from the MRI header. If also the MRI header is lacking the needed information, then the workflow should use user-specified fallback values (from settings.ini) or throw an exception.
Maybe we can think about to implement a safety check that makes sure that we really have to oppositve phase encodings.
The text was updated successfully, but these errors were encountered:
We need to adapt the existing workflow for fieldmap correction to include the following changes:
Make the number of main sequence volumes extracted configurable:
num_volumes
) that specifies how many volumes to extract from the main sequence.5
, but this should be adjustable via thesettings.ini
file (and pipeline parameter as fallback).Replace
pick_volume
with logic for multi-volume extraction and averaging:fsl.ExtractROI
to extract the firstnum_volumes
from the main sequence.fsl.MeanImage
to compute the mean of these extracted volumes for noise reduction.Average the fieldmap sequence:
fsl.MeanImage
to compute the mean of all volumes in the fieldmap.Combine averaged images into a 4D file:
fsl.Merge
to merge the averaged images into a 4D file.Full sequence correction:
Update the configuration file (
settings.ini
):num_volumes_to_extract
, with a default value of5
:Retrieve image parameters from json
Currently, the fieldmap correction workflow retrieves the encoding direction, total readout time and repetition time, through user-specified inputs. To improve automation and reduce user input errors, it would be beneficial to retrieve these values directly from the JSON metadata. If values are missing in the metadata, then try to gather the missing values from the MRI header. If also the MRI header is lacking the needed information, then the workflow should use user-specified fallback values (from settings.ini) or throw an exception.
Maybe we can think about to implement a safety check that makes sure that we really have to oppositve phase encodings.
The text was updated successfully, but these errors were encountered: