MRI-110 · Lesson 10 of 12 · 26 min
k-space
▶ Video coming soon A video version of this lesson is on the way.
Midway through a lumbar spine scan, the patient, a fictional 39-year-old named Mr. Desrosiers, coughed twice. The images were blurred and ghosted, so Mireille repeated the sequence. Afterwards Tomas asked why two coughs lasting perhaps a second had ruined a scan that took four minutes. 'Because the scanner was not collecting the picture,' Mireille said. 'It was collecting k-space. Every line of k-space contributes to every pixel of the image. Spoil a few lines and you spoil the whole picture, a little everywhere.' She opened the raw data view, and the students saw for the first time a bright star-like pattern that looked nothing like a spine.
k-space is the name for the grid of raw data that the scanner collects before an image is reconstructed. Understanding it explains why scan time depends on the phase matrix, why the middle of the data controls contrast, why the edges control detail, what causes aliasing, and how fast imaging methods save time. This lesson describes k-space without heavy mathematics, building on the frequency and phase encoding of lesson 9.
Spatial frequencies
Any image can be described as a sum of simple wave patterns of light and dark stripes, each with a particular spacing, orientation and strength. Broad, gently varying stripes are low spatial frequencies; they represent the overall brightness and large shapes in the image. Narrow, closely spaced stripes are high spatial frequencies; they represent edges and fine detail. Spatial frequency is measured in cycles per unit length, such as cycles per millimetre.
The Fourier transform is the mathematical tool that converts between the two descriptions. Applied to an image, it gives the strength of every spatial frequency present. Applied in reverse, it adds all those patterns back together to rebuild the image. In MRI, the scanner measures the spatial frequency content directly, and the reconstruction computer applies an inverse Fourier transform to produce the picture.
What the scanner actually measures
Each point in k-space corresponds to one spatial frequency. Its position in the grid says which frequency (how closely spaced the stripes are, and in which direction), and its value says how much of that pattern is present in the slice, with a magnitude and a phase. The axis along the frequency-encoding direction is often called kx and the axis along the phase-encoding direction ky.
The gradients determine which point of k-space is being measured at each moment. The k-space position is proportional to the area under the gradient waveform since excitation: the stronger the gradient and the longer it has been applied, the further from the middle of k-space the measurement lies. In a conventional sequence:
- The phase-encoding gradient sets the ky position of the line. Zero phase-encoding gradient gives the middle line; strong positive or negative gradients give lines near the top or bottom edges.
- During the readout, the frequency-encoding gradient sweeps along kx. The pre-phasing lobe first moves the starting point to one edge, and the readout then traverses the line from one side to the other, passing through the middle at the peak of the echo.
Each TR fills one line of k-space (one row of the grid). The sequence repeats with a different phase-encoding step until all the lines have been collected. This is why scan time is proportional to the number of phase-encoding steps: each step is another line of k-space.
Worked problem
Lines and points in k-space
A sequence uses a matrix of 320 (frequency) by 256 (phase). How many lines of k-space must be filled, and how many points are in each line? With TR 500 ms and 1 NEX, how long does it take?
Show solution
- The phase matrix sets the number of lines: 256.
- The frequency matrix sets the number of samples per line: 320.
- Scan time = TR multiplied by lines multiplied by NEX = 0.5 s multiplied by 256 = 128 s.
Answer: 256 lines of 320 points each, filled in about 2 minutes 8 seconds.
The middle and the edges
k-space is not an image, and a point in k-space does not correspond to a point in the patient. Instead, every point in k-space contributes to every pixel in the image. What differs is the kind of information.
- The middle of k-space holds the low spatial frequencies. These points have the largest values because they represent the overall signal from large regions. They determine image contrast and most of the signal-to-noise ratio.
- The edges of k-space hold the high spatial frequencies. These points have small values but carry information about edges and fine detail. They determine spatial resolution.
This division has practical consequences. Because the middle lines dominate contrast, the moment at which they are acquired determines the effective contrast of the image. In fast spin echo, where each TR acquires several lines at different TEs, the effective TE is the TE of the echo placed in the middle of k-space (MRI-111). In contrast-enhanced angiography and dynamic studies, the timing of the middle of k-space relative to the contrast bolus decides whether vessels appear bright. And because the middle carries most of the signal, motion during the acquisition of the middle lines causes more severe ghosting than motion during the edges.
Field of view and resolution in k-space
Two simple rules link k-space to the image. The spacing between neighbouring points in k-space sets the field of view, and the extent of k-space (how far out from the middle it reaches) sets the resolution.
- Finer spacing in k-space (smaller delta k) gives a larger field of view.
- Extending k-space further out, by collecting more points at the same spacing, gives smaller pixels and finer resolution.
- With N points at spacing delta k, the pixel size is FOV divided by N.
Worked problem
Changing matrix and FOV
A sequence uses a 240 mm FOV with 256 phase-encoding steps. (a) What is the pixel size in the phase direction? (b) If the matrix is increased to 320 at the same FOV, what changes in k-space and in the image? (c) If instead the FOV is halved to 120 mm with 128 steps, what happens?
Show solution
- (a) 240 divided by 256 = 0.94 mm.
- (b) The spacing between lines stays the same (same FOV), but k-space extends further out: 320 divided by 256 = 1.25 times as far. Pixels shrink to 240 divided by 320 = 0.75 mm, and scan time rises by 1.25 times.
- (c) The line spacing doubles (half the FOV) and there are half as many lines, so k-space extends just as far as before: pixel size is 120 divided by 128 = 0.94 mm, unchanged, and scan time halves. Anatomy outside the 120 mm FOV will wrap.
Answer: 0.94 mm; increasing the matrix to 320 gives 0.75 mm pixels at 1.25 times the time; halving the FOV with half the steps keeps 0.94 mm pixels, halves the time but risks wrap.
Sampling and the Nyquist criterion
k-space is sampled at discrete points, not continuously. The Nyquist sampling theorem states that a signal must be sampled at least twice per cycle of its highest frequency to be represented without ambiguity. If it is sampled less often, high frequencies are mistaken for lower ones, an effect called aliasing. The same thing makes wagon wheels in old films appear to turn backward.
In the frequency direction, the receiver samples the echo at a rate set by the receiver bandwidth. Signals from tissue outside the field of view have frequencies outside that bandwidth. Modern scanners filter these out and often oversample the readout (collect extra points and discard them), so aliasing in the frequency direction is rarely a problem.
In the phase direction, the sampling is set by the spacing of the phase-encoding steps, and no filter can remove signal from tissue outside the field of view. Tissue just beyond one edge of the FOV gains a phase that the reconstruction cannot distinguish from tissue just inside the opposite edge. It therefore appears wrapped around into the opposite side of the image. This is phase wrap, or aliasing. It is prevented by enlarging the FOV to cover all the anatomy in the phase direction, by swapping the phase and frequency directions, by using saturation bands, or by phase oversampling, which collects extra phase steps at a cost in scan time. MRI-111 treats aliasing in detail.
Worked problem
Nyquist in the readout
A readout uses a total receiver bandwidth of 32 kHz. What is the maximum time between samples allowed by the Nyquist criterion, and what is the highest frequency offset that can be represented without aliasing?
Show solution
- The receiver must sample at the full bandwidth rate: 32,000 samples per second for complex (two-channel) sampling.
- Time between samples = 1 divided by 32,000 = 31.25 microseconds.
- The bandwidth runs from minus 16 kHz to plus 16 kHz, so frequencies within 16 kHz of the centre are represented; anything beyond would alias.
Answer: Samples every 31.25 microseconds; offsets up to plus or minus 16 kHz are represented correctly.
Symmetry and partial Fourier
For an ideal signal, k-space has a mathematical symmetry: each point is the complex conjugate of the point diametrically opposite it through the middle. In principle, then, only a little more than half of k-space needs to be measured; the rest can be calculated. Techniques that exploit this are called partial Fourier, half Fourier or fractional NEX in the phase direction, and partial echo or fractional echo in the frequency direction.
- Partial Fourier in the phase direction reduces the number of phase-encoding steps, shortening scan time, usually by up to about 40 percent. Because fewer data are measured, SNR falls, but resolution is maintained because k-space still extends to the same edge on at least one side.
- Partial echo in the frequency direction samples only part of the echo, which allows a shorter TE. This is especially useful in gradient echo and diffusion imaging.
In practice the symmetry is imperfect because of field inhomogeneity and motion, so partial Fourier methods measure a few extra lines past the middle and use them to correct phase errors. Very aggressive partial Fourier can cause blurring or artefacts.
Ways of filling k-space
The order and path in which k-space is filled are called the k-space trajectory. The conventional method, described above, is Cartesian: one straight line per TR, from one edge to the other, in sequence. Other trajectories trade speed, motion sensitivity and artefacts.
| Trajectory | How k-space is filled | Main advantages | Where met |
|---|---|---|---|
| Cartesian, sequential | One straight line per TR, top to bottom | Simple, robust reconstruction | Most routine 2D and 3D imaging |
| Cartesian, centric | Middle lines first, then outward | Contrast set early, useful with contrast boluses and preparation pulses | Contrast-enhanced angiography, some 3D sequences |
| Multiple lines per TR | Several lines per TR using echo trains | Large time savings | Fast spin echo, echo planar imaging |
| Radial | Spokes through the middle at many angles | Middle sampled repeatedly; motion is averaged rather than ghosted | Motion-robust body and pediatric imaging |
| Spiral | Spirals out from the middle | Very efficient; short echo time | Research, some cardiac and functional imaging |
Echo planar imaging (EPI), the basis of most diffusion and functional MRI, fills all or a large part of k-space after a single excitation by rapidly oscillating the readout gradient and stepping the phase encoding between echoes. It is very fast but highly sensitive to susceptibility and chemical shift artefacts. Parallel imaging, also in MRI-111, uses the different sensitivities of the elements of a receive coil array to fill in deliberately skipped lines of k-space, shortening scans by factors of two or more.
k-space and motion
Returning to Mr. Desrosiers: because every line of k-space contributes to the whole image, a brief cough corrupts a few lines, and the error is spread across the image as ghosts along the phase-encoding direction. Periodic motion, such as breathing or pulsation, produces evenly spaced ghosts. The more lines affected, and the closer they are to the middle, the worse the artefact. This is why technologists coach patients to keep still, use pads and straps, and choose respiratory triggering, breath-holds, radial trajectories or saturation bands where motion is expected.
Reconstruction
Once k-space is filled, the reconstruction computer applies a two-dimensional inverse Fourier transform (three-dimensional for 3D acquisitions), producing a complex image with magnitude and phase at each pixel. The displayed image is usually the magnitude. Before display, the system may apply filters that smooth noise, correct for coil sensitivity, correct gradient non-linearity distortion and interpolate to a finer display matrix. Increasingly, iterative and deep learning reconstructions are used to remove noise or to reconstruct images from undersampled k-space. Those methods are covered in MRI-111 and MRI-230; their foundation is the k-space described in this lesson.
Common mistakes
MistakeThinking each point in k-space corresponds to a point in the patient.
InsteadEach k-space point is a spatial frequency that contributes to every pixel in the image.
MistakeAssuming the edges of k-space determine contrast.
InsteadThe middle determines contrast and most of the signal; the edges determine detail.
MistakeBelieving a larger matrix at the same FOV changes the spacing of k-space lines.
InsteadThe spacing (set by FOV) stays the same; k-space extends further, giving finer resolution.
MistakeExpecting the anti-aliasing filter to prevent phase wrap.
InsteadFilters work only in the frequency direction; phase wrap is prevented by enlarging the FOV, swapping directions or oversampling.
MistakeThinking partial Fourier reduces resolution.
InsteadIt reduces SNR and scan time; resolution is kept because k-space still reaches the same edge.
Summary and key terms
- k-space is the grid of raw data in spatial frequency; the inverse Fourier transform converts it to an image.
- The gradients set the k-space position: phase encoding chooses the line, readout sweeps along it; each TR fills one line in conventional imaging.
- The middle of k-space carries contrast and most of the signal; the edges carry edges and fine detail.
- Spacing in k-space sets FOV (FOV = 1 over delta k); extent sets resolution (pixel = FOV over N).
- Sampling below the Nyquist rate causes aliasing; in the phase direction this appears as wrap.
- Partial Fourier exploits k-space symmetry to save time at a cost in SNR; trajectories such as radial and EPI trade speed and motion robustness.
- k-space
- The grid of raw MR data, organized by spatial frequency.
- Spatial frequency
- How rapidly brightness varies across an image, in cycles per unit length.
- Fourier transform
- The mathematical operation that converts between k-space data and an image.
- kx and ky
- The k-space axes along the frequency-encoding and phase-encoding directions.
- Nyquist criterion
- The rule that a signal must be sampled at least twice per cycle of its highest frequency to avoid aliasing.
- Aliasing (wrap)
- Misplacement of signal from outside the FOV into the image due to undersampling.
- Partial Fourier
- Acquiring only part of k-space and using its symmetry to estimate the rest.
- k-space trajectory
- The path and order by which k-space is filled.
- Echo planar imaging (EPI)
- A technique that fills much or all of k-space after one excitation using an oscillating readout gradient.
Practice problems
Work each problem on paper first, then reveal the answer to check.
If the phase matrix doubles while FOV stays the same, what happens to k-space line spacing, k-space extent, pixel size and scan time?
Show answer
Spacing unchanged, extent doubles, pixel size halves, scan time doubles.
A contrast-enhanced angiogram is timed so the contrast peaks in the arteries 12 seconds after injection. When should the middle of k-space be acquired?
Show answer
At about 12 seconds, at the arterial peak, because the middle of k-space determines contrast.
Why does a cough during the middle of a scan cause worse ghosting than a cough at the very beginning, if sequential ordering is used?
Show answer
With sequential ordering the middle lines, which carry most of the signal, are acquired in the middle of the scan.
A sagittal lumbar spine is acquired with phase encoding anterior-posterior and a 200 mm FOV, but the abdomen extends 60 mm beyond the FOV anteriorly. What artefact is expected, and name two fixes.
Show answer
Phase wrap of abdominal tissue into the posterior part of the image; enlarge the phase FOV, use phase oversampling, swap phase to head-foot, or place an anterior saturation band.
Partial Fourier acquiring 5/8 of k-space is applied to a scan of 256 phase steps. About how many lines are measured and how much time is saved?
Show answer
About 160 lines; the scan takes about 62.5 percent of the full time, a saving of about 37.5 percent.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.