Mapping and Correction of Inhomogeneity in Magnetic Resonance Imaging Magnetic Field

20250060444 ยท 2025-02-20

    Inventors

    Cpc classification

    International classification

    Abstract

    A system and method of mapping and correcting the inhomogeneity of a magnetic field within an object using an Magnetic Resonance Imaging (MRI) system where there is a single dominant resonance. The method includes acquiring at least three MRI images, each at different echo times (TE). At least two TE images (TE.sub.i=1 . . . N) are generated based on the at least three MRI images, wherein the subscripts I=1 . . . N refer to images with sequentially increasing TE times. Aliasing in the TE.sub.1 image is permitted. The T times of TE.sub.1 and TE.sub.2 are set such that the alias points at which wrapping occurs in TE.sub.1 does not overlap with the alias points of TE.sub.2. Each TE image is unwrapped. A final B.sub.0 map is set to the unwrapped TE.sub.N image.

    Claims

    1. A method for mapping and correcting the inhomogeneity of a magnetic field within an object using an Magnetic Resonance Imaging (MRI) system where there is a single dominant resonance, the method comprising: acquiring at least three MRI images, each at different echo times (TE): generating at least two TE images (TE.sub.i=1 . . . N) based on the at least three MRI images, wherein the subscripts i=1 . . . N refer to images with sequentially increasing TE times: wherein aliasing in the TE.sub.1 image is permitted, and wherein the TE times of TE.sub.1 and TE.sub.2 are set such that the alias points at which wrapping occurs in TE.sub.1 does not overlap with the alias points of TE.sub.2; and unwrapping each TE image; and setting a final B.sub.0 map to the unwrapped TE.sub.N image.

    2. A system for mapping and correcting the inhomogeneity of the magnetic field within an object using Magnetic Resonance Imaging (MRI) where there is a single dominant resonance, the system comprising: an MRI imaging device for acquiring at least three MRI images, each at different echo times (TE), wherein the MRI imaging device includes a controller configured to: generate at least two TE images (TE.sub.i=1 . . . N) based on the at least three MRI images, wherein the subscripts I=1 . . . N refer to images with sequentially increasing TE times: wherein aliasing in the TE.sub.1 image is permitted, and wherein the TE times of TE.sub.1 and TE.sub.2 are set such that the alias points at which wrapping occurs in TE.sub.1 does not overlap with the alias points of TE.sub.2: unwrap each TE image; and set a final B.sub.0 map to the unwrapped TE.sub.N image.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0017] The foregoing features of embodiments will be more readily understood by reference to the following detailed description, taken with reference to the accompanying drawings, in which:

    [0018] FIG. 1 shows a schematic of a Magnetic Resonance Imaging (MRI) system (prior art);

    [0019] FIG. 2 shows a conventional gradient echo pulse sequence for B.sub.0 mapping:

    [0020] FIGS. 3A and 3B show Aliasing and Uncertainty in B.sub.0 Mapping:

    [0021] FIG. 4 shows an example of logistical temporal unwrapping, in accordance with embodiment of the invention;

    [0022] FIG. 5 shows the effects of uncertainty on LTUP in the TE=2 ms image, in accordance with an embodiment of the invention:

    [0023] FIG. 6 shows the effects of uncertainty in the TE=2 ms image and the TE=9 ms image, in accordance with an embodiment of the invention:

    [0024] FIG. 7 compares images and B.sub.0 maps acquired from a healthy subject using conventional methodology; and using the Logistical Temporal Unwrapping methodology in accordance with embodiments of the invention;

    [0025] FIG. 8 is an illustrative flow diagram of a Logistical Temporal Unwrapping methodology, in accordance with an embodiment of the invention; and

    [0026] FIG. 9 shows three wrapped TE maps and the final unwrapped B.sub.0 map obtained from a spherical phantom, in accordance with various embodiments of the invention.

    DETAILED DESCRIPTION OF SPECIFIC EMBODIMENTS

    [0027] Definitions. As used in this description and the accompanying claims, the following terms shall have the meanings indicated, unless the context otherwise requires:

    [0028] The term image refers to a dataset in which a parameter(s) such as, without limitation, phase, B.sub.0 field variation etc. . . . , is provided as a two or three dimensional map reflecting the spatial variation of that parameter.

    [0029] In illustrative embodiments of the invention, a system and method is provided for mapping and correcting the inhomogeneity of a magnetic field within an object using Magnetic Resonance Imaging (MRI) or Nuclear Magnetic Resonance (NMR) systems. The system and method includes logistical temporal unwrapping that enables the use of longer TE images to unwrap aliasing in the shortest TE image, and utilizes the patterns of aliasing in all images to unwrap the most accurate longer TE image. Aliasing in the shortest TE image is advantageously allowed, minimizing the need to accurately predict the maximum inhomogeneity present. Additionally, the TE values used can lengthen by factors larger than two, enabling greater accuracy with fewer TE images and thus shorter acquisition times. Details are described below.

    [0030] FIG. 1 shows a conventional Magnetic Resonance Imaging (MRI) system. The MRI system includes a magnet, gradient coil (used for spatial localization), shim coil (used to correct B.sub.0 inhomogeneity) and RF coil (used for excitation and detection of signals). A controller, which may include a computer or other processing elements is used for control of the system. Shim and RF amplifiers may be used to drive their respective coils in the magnet. While the below described embodiments refer to MRI systems, it is to be understood that the invention is applicable to NMR or other imaging systems known in the art as well.

    Performance Considerations for B.SUB.0 .Mapping

    [0031] FIG. 2 shows a conventional gradient echo pulse sequence for B.sub.0 mapping. The sequence generally includes: a slice selective RF pulse (RF, SLICE) followed by a variable delay, A, an incremented phase encoding gradient (PE) and a readout gradient (RO). The acquisition is successively looped over N slices, M TE times, and finally P phase encode steps.

    [0032] B.sub.0 mapping is commonly achieved using gradient echo images acquired with two or more different echo times. For samples or tissues with a single dominant resonance (e.g. water) the phase of the acquired images is given by the product of the difference in frequency of the dominant resonance from the carrier frequency () and the echo time (TE) and a spatially varying constant (.sub.0(r)) dependent on a number of parameters including RF coil system, reconstruction method and other instrumental factors.

    [00001] = 2 .Math. v .Math. TE + 0 ( r ) Eq . 1

    [0033] Thus the phase difference, , between any two images is given by [2], such that the only unknown is the frequency offset .

    [00002] = 2 .Math. v .Math. TE Eq . 2

    [0034] Thus, assuming a single dominant resonance such that the distribution of frequencies in the image are solely related to the distribution of B.sub.0 field present, the spatial variation in provides a direct measure of the inhomogeneity (B.sub.0) present in the sample or tissue.

    [0035] For a given level of phase noise (.sub.phase) and constant signal level, the measured phase (.sub.msd) and true phase (.sub.true) and measured (.sub.msd) and true frequencies (.sub.true) are given by Eqs. 3 and Eq. 4.

    [00003] msd = true + phase Eq . 3 v msd = v true + phase 2 .Math. TE Eq . 4

    [0036] Thus the accuracy of the measurement generally increases with increasing TE.

    [0037] However, since the phase .sub.msd is periodic, with periodicity 2, such that for long TEs (i.e. more accurate measurements) if .sub.true>1/(2.Math.TE) the phase will alias such that the true phase and frequency is given by Eq. 5 and Eq. 6 with n being an integer describing the amount of wrapping.

    [00004] true = msd + 2 n + phase Eq . 5 v true = v msd + n TE + phase 2 .Math. TE Eq . 6

    [0038] Thus .sub.true may not be uniquely determined in the presence of wrapping and noise/uncertainty. Thus the most accurate (longest TE) is prone to large systematic errors due to aliasing. For example, FIG. 3A shows the measured values (.sub.msd) along the vertical axis as a function of the true value (.sub.true) along the horizontal axis for a TE=2 ms image over the range of +500 Hz. The wrapping points are at +250 Hz. Displayed in FIG. 3B (lines added for visualization) is an expansion of the region from 270 to 240 Hz (box in FIG. 3a) displaying .sub.msd for the TE=2 ms image and a TE=2 ms with an error of +10 Hz. For values between 270 and 260 Hz, both images alias and their difference is 10 Hz. However from 260 to 250 Hz, the TE=2 ms image with a +10 Hz error term does not alias, while the TE=2 ms images does resulting a difference of +490 Hz.

    Methods of Unwrapping

    [0039] To overcome this limitation two broad methods, spatial and temporal unwrapping have been described to unalias the data. See, for example: Jenkinson, M., Fast, automated, N-dimensional phase-unwrapping algorithm. Magn Reson Med, 2003. 49 (1): p. 193-7; Hetherington, H. P., et al., Robust fully automated shimming of the human brain for high-field 1H spectroscopic imaging. Magnetic resonance in medicine, 2006. 56 (1): p. 26-33: Robinson, S., H. Schodl, and S. Trattnig, A method for unwrapping highly wrapped multi-echo phase images at very high field: UMPIRE. Magn Reson Med, 2014. 72 (1): p. 80-92: Geiger, Y. and A. Tal, Optimal echo times for multi-gradient echo-based B0 field-mapping. NMR Biomed, 2020. 33 (7): p. e4316; and Dagher, J., T. Reese, and A. Bilgin, High-resolution, large dynamic range field map estimation. Magn Reson Med, 2014. 71 (1): p. 105-17, each of which is incorporated herein by reference in its entirety.

    [0040] Spatial unwrapping relies on the spatial continuity of the data to identify discontinuities in the B.sub.0 data as indicators of aliasing. See Jenksinson et al. These methods perform acceptably under conditions of moderate wrapping (i.e. moderate values of TE), such that the accuracy of the measurements is limited by the TE used. For temporal unwrapping, multiple TE values are used, with the shortest TE chosen to eliminate aliasing (see Hetherington et al.), i.e. TE.sub.min<1/BW.sub.max=1/(2.Math.|.sub.max|). Under this condition, the values in the shortest TE are used to correct aliased values in longer TE images. Unfortunately, if the maximum uncertainty in the shortest TE image .sup.max,

    [00005] max = k .Math. phase 2 .Math. TE ,

    where k is a scaling value such that all outliers are included, exceeds the bandwidth of the longer TE image (1/TE) the extent of aliasing will be ambiguous. Thus the longer TE image cannot use an arbitrarily long TE. For a normal distribution of noise/uncertainty, with

    [00006] phase 2 .Math. TE

    being the standard deviation of the noise/uncertainty in the frequency domain, k would reflect number of standard deviations to account for the maximum noise value present in the sample.

    [0041] To overcome this limitation previously, a multi-TE acquisition used a boot strap approach where: 1) the initial TE value is chosen to be sufficiently short to eliminate aliasing: 2) each subsequent TE image uses a factor of 2 in increasing duration and 3) each subsequent TE image is used as the reference image to unwrap the next longest TE image. Thus as the accuracy increases and bandwidth decreases in each subsequent image, the uncertainty in the reference TE image decreases preserving the ability to unwrap the data unambiguously. However this method is limited by 1) the requirement to capture all inhomogeneity present (i.e. preclude aliasing) in the shortest TE image and 2) the number of images required to get to arbitrarily long TE values for a desired level of accuracy. These limitations manifest as longer acquisition times (more TE images) for both increasing initial inhomogeneity and final accuracy.

    Logistical Temporal Unwrapping

    [0042] In illustrative embodiments of the invention, logistical temporal unwrapping provides the following unique advantages: 1) aliasing in the shortest TE image is allowed, minimizing the need to accurately predict the maximum inhomogeneity present; and 2) the TE values used can lengthen by factors larger than 2, enabling greater accuracy with fewer TE images and thus shorter acquisition times. This methodology achieves these advantages by 1) using the longer TE images to unwrap aliasing in the shortest TE image and 2) utilizing the patterns of aliasing in all images to unwrap the most accurate image, i.e. the longest TE image.

    Unwrapping Aliasing in the Shortest TE Image

    [0043] Aliasing results in discontinuities in the measured phase at well-defined frequency values in the bandwidth of the measurement. By comparing the measured values in the shortest TE image with that measured in the longer TE images, aliasing can be detected. Specifically a logistic temporal unwrapping parameter (LTUP) can be calculated, which enables the detection of wrapping in the shortest TE image.

    [00007] LTUP = ( v short - v long ) / ( BW long / 2 )

    [0044] FIG. 4 displays an example of the process graphically using TE values of 2 and 9 ms (based on three MRI images with TE times of 4, 6 and 13 ms) with up to a factor of 2 in aliasing (+500 Hz, maximal expected bandwidth) present in the 2 ms image, in accordance with an embodiment of the invention. When the value of the LTUP is (LTUP=0,2, or 4, i.e., even numbers) the measured value in the shortest TE image is unaliased, whereas if the value is (LTUP=1,3,5, i.e., odd numbers) the value is aliased and can be corrected. For example, in the past conventional methodology, to achieve a true bandwidth of 500 Hz, and achieve reasonable accuracy 4 TEs would be acquired (i.e. 1, 2, 4 and 8 ms). Whereas, under the current method, only 2 TEs would be acquired yielding equivalent maximal bandwidth, but with superior accuracy (9 vs 8 ms) with fewer TEs (2 versus 4).

    [0045] The effects of noise/uncertainty in the measurements is most pronounced at the aliasing points, where a few Hz of noise can dramatically change the measured values. For example, for a true value of 250 Hz, if .sup.max=10 Hz in the TE=2 ms image, the true value will map into a set of values between +240 Hz and +260 Hz. However, due to aliasing this set of true values {240, 241, . . . 260} maps into the values {240, 241, . . . 250, 249, 248, . . . 240}. This is graphically represented in FIG. 5, which shows the effects of uncertainty in the TE=2 ms image on LTUP, in accordance with an embodiment of the invention, by two lines 2 ms (10 Hz) and 2 ms (+10 Hz) representing the extremes of the numerical range. Assuming .sup.max0 in the TE=9 ms image, the true value of 250 Hz maps into a value of 27.8 Hz in the TE=9 ms image. However, due to the uncertainty in the TE=2 ms image, the LTUP can take on not only non-integral values, e.g. (24027.7)/55.6=+3.82, but also very different values when the frequency is aliased, e.g. (240/27.7)/55.64.81.

    [0046] The non-integral values of LTUP can be addressed by calculating LTUP*, where LTUP*=round (LTUP). After correction for non-integral values, however LTUP*=5 or +4. Similarly for frequencies within .sup.max of 250 Hz, the LTUP* can take on values of 4 or +5. However, the set of LTUP* values over these two regions are distinct, such that the LTUP* can still be used to determine if the value has aliased or not. For example if the true frequency is 245 Hz, the +10 Hz limits will place the measured value between 235 and 255 Hz, yielding value of 235 to 250 and 250 to 245 Hz in TE=2 ms image with two possible LTUP* values, +4 and 5. This range of values in the TE=2 ms image could also have been generated by a true frequency of 255 Hz, with LTUP* values of 4 and +5. Outside of the potential aliasing regions, the calculated LTUP* values for the extremes of uncertainty in the TE=2 ms image are coincident (FIG. 5) and no ambiguity for aliasing exists. Thus the LTUP*, even in the presence of noise provides unambiguous unwrapping over these regions.

    Unwrapping the TE.SUB.long .Image

    [0047] Once the TE=2 ms image has been unwrapped and .sub.short.sup.unwrap is outside of .sub.2 (the uncertainty/noise), of the alias point of the image1/(2TE.sub.long), .sub.long.sup.msd can also be unwrapped. FIG. 6 assists in showing the unwrapping the TE.sub.long Image, in accordance with an embodiment of the invention (FIG. 6 includes experimental uncertainty in both the TE 2 ms and 9 ms images). Specifically, for each .sub.long.sup.msd in the TE=9 ms image there are nine theoretical potential values in the TE=9 ms image, .sub.short.sup.potential(n), which are given by:

    [00008] v short potential ( n ) = v long msd + n ( 1 / TE long ) Eq . 8 where n = 0 , 1 , 2 , 3 , 4

    forming the pairs

    [00009] { ( v short potential ( - 4 ) , v long msd ) .Math. ( v short potential ( 0 ) , v long msd ) .Math. ( v short potential ( + 4 ) , v long msd ) }

    Thus the unwrapped value TE=9 ms image, .sub.long.sup.unwrap, is achieved by selecting the nth pair of values, minimizing .sub.short(n) where

    [00010] short ( n ) = .Math. "\[LeftBracketingBar]" v short potential ( n ) - v short unwrap .Math. "\[RightBracketingBar]" . Eq . 9

    [0048] However, if the value of .sub.long.sup.msd is within .sub.long (the uncertainty/noise) of the alias point of the image1/(2TE.sub.long), false aliasing due to noise may have occurred. If false aliasing due to noise does occur, .sub.short(n) will be larger than .sub.short, the uncertainty in the TE.sub.short image. In this case the value .sub.short.sup.unwrap is used for .sub.long.sup.unwrap to unwrap the TE.sub.long image.

    [0049] Alternatively, the process of unwrapping can be more generally viewed from the perspective of pattern matching, i.e. the finding the best numerical agreement between pairs of measured values (i.e. {(.sub.short.sup.msd, .sub.long.sup.msd)} and the n sets of theoretical potential pairs i.e., {(.sub.short.sup.potential(n), .sub.long.sup.potential(n)) . . . } of values, where the number of pairs is dependent upon the extent of aliasing and maximum bandwidth.

    [0050] Thus, in general, in the presence of noise or uncertainty in the TE.sub.long image, unambiguous unwrapping can be achieved if uncertainties in the frequency region about the alias points in the image are spanned by continuous sets of differing values from the TE.sub.short image. Continuity of these values in the TE.sub.short image is achieved when the specific TE values for both the TE.sub.short and TE.sub.long images are chosen such that the alias points.sup.max do not overlap. Once the TE.sub.short image is unwrapped, the TE.sub.long image can be unwrapped.

    [0051] As described, we have allowed for noise and uncertainty in the TE.sub.short image but not the TE.sub.long image(s). The presence of noise or uncertainty in the TE.sub.long image pixels with true values near the alias points of the TE.sub.long image can result in multiple LTUP* values. To unalias the TE.sub.short image the regions of uncertainty about the alias points in the short TE image are extended by the noise in the TE.sub.long image, i.e. .sup.max=.sub.short.sup.max+.sub.long.sup.max. As long as these bands, alias points.sup.max, are within the continuous region of the TE.sub.long image, the TE.sub.short image can be unaliased as described previously (see FIG. 5) using the LTUP*. Since the TE.sub.short image is continuous over these regions, the TE.sub.long image can be unwrapped as described previously by creating the set of paired values {(.sub.short.sup.potential(n),.sub.long.sup.msd)} and selecting the nth pair such that .sub.short(n) is a minimum or, .sub.short.sup.unwrap when near the wrap points of the TE.sub.long image and .sub.short(n) is large.

    Creating Very High Accuracy Maps with Additional TE Images.

    [0052] As described, we have utilized 2 TE images (TE.sub.1=TE.sub.short,TE.sub.2=TE.sub.long) to generate a B.sub.0 map. However, the TE times chosen are limited by the maximum bandwidth of the sample, the aliasing patterns and the uncertainty in the individual TE maps. Thus in general arbitrarily long TE times for very high accuracy may not be possible under conditions of significant uncertainty and large sample bandwidth. To overcome this limitation additional TE times (TE.sub.3, TE.sub.4, . . . ) can be acquired with increasing length. Each additional TE image then forms a new pair of images, with the long TE image from the previous pair (e.g. TE.sub.2) now serving as the short TE image and the new image (e. g. TE.sub.3) serving as TE.sub.long. Since the new TE.sub.short image has already been unwrapped the requirement for non-overlapping alias point regions, can be relaxed, and the new TE chosen must only satisfy the criteria that the maximal uncertainty in the new pair of images (e.g for (TE.sub.2, TE.sub.3), .sup.max=.sup.max+.sub.3.sup.max, be less than the bandwidth of the new TE image, (e.g. 1/TE.sub.3). Thus the process becomes recursive for each TE image. Notably, as described previously, the multiplicative factor used in increasing the length of subsequent TE times is not constrained by a factor of 2, but rather the actual noise/uncertainty in the images. This allows for very efficient increases in accuracy per additional TE image acquired. At some point, the noise/uncertainty in the longer TE image may not decrease inversely with increasing duration.

    [0053] FIG. 7 compares scout images and B.sub.0 maps acquired from a healthy subject using conventional methodology using TE times of 1, 2, 4 and 8 ms; and using the Logistical Temporal Unwrapping methodology in accordance with embodiments of the invention, with TE times of 2 and 9 ms. The maps display every 4th slice in the image set, from a set of 33 slices. The images are plotted on a scale of 100 Hz. The target region of interest for shimming is shown in red on the scout images (top row) and black on the B.sub.0 maps. Despite fewer TE times, the Logistical Temporal Unwrapping methodology shows a small but significant reduction (10%, 20.2 versus 22.5) in standard deviation of B.sub.0 over the entire brain in comparison to the conventional method. This is consistent with the lengthening of the maximum echo time from 8 ms to 9 ms (12.5%).

    [0054] FIG. 8 is an illustrative flow diagram of a Logistical Temporal Unwrapping methodology, in accordance with an embodiment of the invention. At step 801, the varying echo times (TE) are selected based on BW.sub.max and accuracy, which may be determined, for example, by TE long. The B.sub.0 mapping image data is then acquired, step 803. Illustratively, at least two TE images (TE.sub.i=1 . . . N) may be generated based on at least three MRI images, wherein the subscripts i=1 . . . N refer to images with sequentially increasing TE times. Advantageously, aliasing in the TE.sub.1 image is permitted, and the TE times of TE.sub.1 and TE.sub.2 are set such that the alias points at which wrapping occurs in TE.sub.1 does not overlap with the alias points of TE.sub.2. The phase differences in the TE images are calculated in the TE maps are calculated and converted to frequency, step 805. Each TE image is then unwrapped. More specifically, as an example, LTUP* is calculated and the TE.sub.1 (short image) is unwrapped, step 807. Then, the TE.sub.2 (long image) is unwrapped using the unwrapped TE.sub.1 (short image), step 809. If there are more TE images, step 811, set the unwrapped TE (short image) to the unwrapped TE (long image), and the TE (long image) to the next longest TE image, step 813. If there are no more TE images at step 811, set the final B.sub.0 map to the last unwrapped TE.sub.N (long image), step 815. The shim currents and/or passive shims may then be calculated to generate the B.sub.0 correction field, step 817, which may then be applied to improve the B.sub.0 homogeneity.

    [0055] Illustratively, the following is a more specific algorithm for unwrapping and setting of the final B.sub.0 map, in accordance with an embodiment of the invention. [0056] 1. Select a set of evolution times, [0057] a. A minimum of 3 evolution times to generate at least 2 TE images [0058] b. Select the individual TE times in the first two TE image such that the frequency regions about the alias points (2/TE), including the maximal uncertainty (.sub.short.sup.max+.sub.long.sup.max), do not overlap over the range of maximum expected frequencies (BW.sub.max) in the sample or tissue. [0059] c. Select additional TE times such that (.sub.short.sup.max+.sub.long.sup.max)<BW.sub.long, where the subscripts short and long refer to images with sequentially increasing TE times. [0060] d. Aliasing in the TE.sub.short image is permitted over BW.sub.max. [0061] 2. Acquire the data. [0062] 3. Calculate the phase in the TE images and convert to frequency.

    [00011] v msd = msd 2 TE [0063] 4. Unwrap the TE.sub.short image: [0064] a. Divide the bandwidth of the TE.sub.short image into two conceptual regions: [0065] i. Frequencies within .sub.short.sup.max+.sub.long.sup.max of the alias points of the TE.sub.short image [0066] ii. Frequencies outside of this region [0067] b. For frequencies within region (ii) [0068] i. Calculate the sets of theoretical values for LTUP* over BW.sub.max as a function of extent of aliasing (n=0, 1, . . . ) [0069] ii. Calculate LTUP* from the measured data

    [00012] LTUP *= ROUND ( ( v short msd - v long msd ) / ( BW long / 2 ) ) [0070] iii. Use the measured LTUP* to look up the value of n from the theoretical values in 4.b.i [0071] iv.

    [00013] Calculate v short unwrap = v short msd + n .Math. BW short , [0072] c. For frequencies within region (i) [0073] i. Perform the same calculation as in 4.b.i over the range of frequencies spanned by the alias point+(.sub.short.sup.max+.sub.long.sup.max) [0074] ii. Calculate LTUP* from the measured data

    [00014] LTUP *= ROUND ( ( v short msd - v long msd ) / ( BW long / 2 ) ) [0075] iii. Use the measured LTUP* to look up the value of n from the set of theoretical values in 4.c.i. Each aliased region will have multiple but distinct LTUP* values for a given value of n. [0076] iv. Calculate .sub.short.sup.unwrap=.sub.short.sup.msd+n.Math.BW.sub.short. [0077] 5. Unwrap the long TE image: [0078] a. Using the measured value in the TE.sub.long image calculate the potential pairs of frequency values for the (.sub.short.sup.potential(n), .sub.long.sup.msd) over BW.sub.max {(.sub.short.sup.potential(n), .sub.long.sup.msd) . . . } where .sub.short.sup.potential(n)=.sub.long.sup.msd+n(1/TE.sub.long), [0079] b. Calculate .sub.short(n)=|.sub.short.sup.potential(n).sub.short.sup.unwrap| for each pair [0080] c. Select the value of n that minimizes .sub.short(n). [0081] d. If .sub.short(n)<.sub.short.sup.max Assign .sub.long.sup.unwrap=.sub.long.sup.msd+n(1/TE.sub.long) [0082] If .sub.short(n)>.sub.short.sup.max Assign .sub.long.sup.unwrap=.sub.short.sup.unwrapped [0083] 6. Unwrap additional longer TE images (TE.sub.longer) if present by . . . [0084] a. Substituting the parameters for the TE.sub.short image with those from the TE.sub.long image e.g. .sub.short.sup.unwrap=.sub.long.sup.unwrap [0085] b. Substituting the parameters for the TE.sub.long image with those from the TE.sub.longer image e.g. .sub.long.sup.msd=msd.sub.longer.sup.msd [0086] c. Repeating the calculation described in 5 [0087] 7. After all images have been unwrapped, use the values from the longest TE image to generate the final map. [0088] 8. Using the final B.sub.0 map described in 7 calculate a set of shim currents and/or determine passive shimming for generating a correction B.sub.0 field of approximately equal amplitude but opposite sign. [0089] 9. Apply the calculated shim currents and/or passive shims to reduce the B.sub.0 inhomogeneity in the sample.

    [0090] FIG. 9 shows three wrapped TE maps and the final unwrapped B.sub.0 map obtained from a spherical phantom, in accordance with various embodiments of the invention. More particularly, the figure shows nine slices from a set of 33 slices acquired from the spherical phantom in which the shims were purposely offset to generate a significant amount of inhomogeneity. The bottom three rows show the wrapped maps from the: TE=2 ms image (bottom row): 9 ms image: (2.sup.nd row from bottom); and 21 ms image, plotted on their scales of +/BW/2 where BW=1/TE. The top row shows the final B.sub.0 map obtained from the unwrapped last TE=21 ms map, using the above-described methodology and embodiments of the invention.

    [0091] Embodiments of the invention may be located implemented in part in any conventional computer programming language. For example, preferred embodiments may be implemented in a procedural programming language (e.g., C) or an object oriented programming language (e.g., C++, Python). Alternative embodiments of the invention may be implemented as pre-programmed hardware elements, other related components, or as a combination of hardware and software components.

    [0092] Embodiments also can be implemented in part as a computer program product for use with a computer systemfor example, the controller of the MRI system described above. Such implementation may include a series of computer instructions fixed either on a tangible medium, such as a computer readable medium (e.g., a diskette, CD-ROM, ROM, or fixed disk) or transmittable to a computer system, via a modem or other interface device, such as a communications adapter connected to a network over a medium. The medium may be either a tangible medium (e.g., optical or analog communications lines) or a medium implemented with wireless techniques (e.g., microwave, infrared or other transmission techniques). The series of computer instructions embodies all or part of the functionality previously described herein with respect to the system. Those skilled in the art should appreciate that such computer instructions can be written in a number of programming languages for use with many computer architectures or operating systems. Furthermore, such instructions may be stored in any memory device, such as semiconductor, magnetic, optical or other memory devices, and may be transmitted using any communications technology, such as optical, infrared, microwave, or other transmission technologies. It is expected that such a computer program product may be distributed as a removable medium with accompanying printed or electronic documentation (e.g., shrink wrapped software), preloaded with a computer system (e.g., on system ROM or fixed disk), or distributed from a server or electronic bulletin board over the network (e.g., the Internet or World Wide Web). Of course, some embodiments of the invention may be implemented as a combination of both software (e.g., a computer program product) and hardware. Still other embodiments of the invention are implemented as entirely hardware, or entirely software (e.g., a computer program product).

    [0093] Although various exemplary embodiments of the invention have been disclosed, it should be apparent to those skilled in the art that various changes and modifications can be made which will achieve some of the advantages of the invention without departing from the true scope of the invention.