= Prepare Fieldmap = {{{prepare_fieldmap}}} is a command line tool for converting scanner saved fieldmap to units of radians/sec. As of now it only works with fieldmap saved with Siemens sequence 'gre_field_mapping'. {{{prepare_fieldmap}}} can be run from command line using following syntax: '''NIfTI input: ''' {{{ prepare_fieldmap.exe --out= [options] --in= }}} '''Dicom input: ''' {{{ prepare_fieldmap.exe --out= [options] -d .. }}} where, {{{}}} is the output filename. {{{[options]}}} is optional input defined below. {{{}}},..,{{{}}} is the path to dicoms saved by scanner. These dicoms paths should contain only dicom files for fieldmap sequence. In case dicom input is not working as expected, please first convert dicom image to nifti format using some external converter and use nifti input as shown above. '''Optional Arguments: ''' {{{ --ref-vol= }}} where, {{{}}} is filename of reference volume NIfTI format (.nii or .nii.gz) which can be used to estimate or define a mask of the head. This mask is used to replace noisy fieldmap estimate outside the head by extrapolating the fieldmap. The reference volume can be the 3D/4D magnitude image used for fieldmap estimation (and as saved by the scanner) OR it can be a manually drawn mask. In the former case, {{{prepare_fieldmap}}} will estimate the head mask from the reference volume based on instensity. The Estimated mask is also saved to disk with file name as {{{.mask.nii.gz}}}. In case the automatic estimated mask is not accurate, please refine the mask manually in BrainSuite and re-run with refined mask as reference volume. Last Updated on: August 12, 2013 === Download Links === {{{prepare_fieldmap}}} requires MATLAB compiler runtime (v2012a) which can be downloaded from [[https://www.mathworks.com/products/compiler/mcr/|here]] for your platform. Windows users may also need [[http://www.microsoft.com/en-us/download/details.aspx?id=14632|Visual C++ runtime package]]. * [[http://neuroimage.usc.edu/resources/prepare_fieldmap_win64.zip|Windows 64 bit]] * Linux 64 bit * Mac 64 bit '''Authors:''' [[Members|Chitresh Bhushan]] <   )>>