Theme 04 · Encoding and data
Turn gradient current, phase, and field maps into k-space data and reconstructed images.
Explore read, phase, and slice encoding; gradient moments; complex k-space; Fourier reconstruction; quantitative 3D susceptibility-to-field, GRE phase, QSM inversion; trajectories; and single-shot EPI artifacts.
03 / THREE ORTHOGONAL CONTROLS
Same physics.
Three jobs.
Read, phase, and slice are logical jobs attached to the prescribed image plane. The X/Y/Z labels in this first axial example name image coordinates—not a permanent promise that read = physical Gx, phase = physical Gy, and slice = physical Gz. For an oblique plane, the scanner combines all three fixed physical coil sets.
THE THREE TABS BELOW COMPARE ROLES; THEIR LEFT-TO-RIGHT ORDER IS NOT TIME. In the simplified 2D sequence taught here, RF plus the slice-select gradient first creates transverse signal in a slab. A later phase-encoding lobe creates a retained angle pattern. A read prephaser then prepares the start, and only afterward do the read gradient and ADC collect samples.
GX · ON DURING ADC
Position becomes frequency.
During signal readout, Gx makes spins at different x positions precess at different frequencies. Sampling through time walks continuously across one row of k-space.
With teaching efficiency η = 0.080 mT/m/A, 250 A produces 20.0 mT/m. During readout that increases frequency separation and moves farther through kx during a fixed time.
Follow what the current actually changes.
HELD FIXED: 220 mm FOV, 0.80 ms teaching interval, coil efficiency, RF bandwidth, and ideal sampling. Hardware current alone does not promise clinical resolution.
Watch gradient-coil current become slice, phase, and readout encoding.
The translucent cylinder is the bore-side gradient former; its mint, coral, and violet paths are simplified physical Gx, Gy, and Gz winding cues. Moving bright beads show slowed conventional-current direction, not electrons. Inside, the oval and its true 3D voxel lattice are one digital object, the violet slab is the part given transverse signal, and the enlarged colored vectors show collective spin-packet phase—not individual protons. Scrub one event slowly, or use the B₀/Gx/Gy/Gz teaching buttons to isolate why field strength changes rotation rate and accumulated phase.
Drag to orbit · pinch, wheel, or use + / − to zoom · tap an object to identify it
SEQUENCE MODE · Use the ordered events above. B₀ is still present continuously underneath every gradient and RF event.
Orientation defines the logical read, phase, and slice directions. No gradient current or RF excitation occurs yet.
Axial example: logical read = physical X, logical phase = physical Y, and logical slice = physical Z. This simple one-to-one mapping changes when the plane rotates.
THE SCANNER DEFINES THREE LOGICAL DIRECTIONS
Read and phase lie inside the image plane. Slice points perpendicular to it. No RF pulse has tipped magnetization yet, so the transverse phase vectors are hidden and the receiver has nothing useful to read.
The plane can be prescribed before any amplifier fires. When a logical gradient is requested, its direction cosines set the simultaneous Gx/Gy/Gz mixture.
The colored paths are fixed physical conductor-pattern cues. No gradient amplifier is driving them in the orientation event. Exact amperes are not claimed because converting mT/m into A requires the scanner-specific coil efficiency and calibration.
During a symmetric RF pulse, selected spins are tipped over a finite time while the slice gradient remains on. The gradient area after the pulse’s effective center leaves a position-dependent phase slope. A following opposite logical-slice area—about half the full selection plateau in this simplified case—cancels that slope. It does not undo excitation or select a second slice.
0.5× changes only this teaching animation’s wall-clock pace. It does not change gradient duration, slew rate, TE, TR, phase, k-space, or the clinical scan.
Current in shaped conductors creates a calibrated Bz slope
A gradient amplifier sends signed conventional current through one or more fixed winding sets. Reversing current reverses the slope; more current generally makes it steeper until hardware and safety limits intervene. mT/m measures the resulting field slope, not amperes. The moving beads show direction only, while exact current requires scanner-specific coil efficiency.
Limit which slab creates transverse signal
The logical slice gradient makes resonance frequency vary along the plane normal. RF excites its chosen frequency band, so only the matching slab is tipped. Without slice selection, signal from the larger excited volume would overlap in a 2D image.
Create an independent position-dependent angle pattern
A brief post-excitation gradient makes positions accumulate different transverse angles. The lobe then turns off, but the relative angles remain. Repeating a different signed area on later TRs supplies the independent ky measurements needed to separate positions along that direction.
Measure many kx addresses while ADC is open
The read gradient creates position-dependent frequency offsets and moves the calculated address through kx. The ADC stores a new whole-slice I + iQ coefficient at each dwell. Without it, one repetition would not efficiently sample a complete k-space row.
MODEL BOUNDARY · The B₀/Gx/Gy/Gz buttons isolate concepts; they are not real scanner power buttons. An installed superconducting MRI main magnet is normally continuously energized, and changing its state is specialized engineering work—not a routine operator action. The isolated-gradient view assumes RF first prepared coherent transverse magnetization, removes the common B₀ carrier in a rotating-frame display, and exaggerates phase evolution. Gx, Gy, and Gz name the physical coordinate along which the small added longitudinal field changes; they do not make spins rotate about X, Y, or Z. The translucent former, loop/saddle paths, moving current beads, oval, voxel lattice, phase vectors, contour planes, RF rings, and seven-address readout are an explanatory digital model—not manufacturer winding CAD, electron drift speed, an electromagnetic field solution, anatomy, individual nuclei, a measured B field, or a clinical pulse-sequence prescription. Vector direction and cyclic mint→yellow→coral→violet color both encode wrapped phase from φ = 2π(kxx/FOV + kyy/FOV); color is not magnitude or tissue type. Real transverse-gradient windings are engineered distributed patterns, not these few saddle paths; exact current in amperes requires each scanner’s calibrated coil efficiency. The slow-motion percentage is an explanatory interpolation, not a quantitative RF envelope, ramp, slew-rate, TE, or TR clock. The “about half-area” slice-rephasing statement assumes a symmetric RF envelope on a flat selection gradient and refers to gradient-created phase from the effective RF center. Real pulse shapes, gradient ramps, , refocusing pulses, , , , and manufacturer implementation can change the exact waveform. In an axial plane the logical slice job can be physical Gz; in an oblique plane its reverse lobe reverses the required Gx/Gy/Gz mixture, not necessarily Gz alone.
After RF creates transverse signal, set one ky address. Then sample across kx.
They are not two different kinds of magnetism. Both logical jobs use a gradient, and either gradient creates position-dependent frequency offsets while it is on. Their timing relative to the receiver is what makes their stored information different.
READOUT
Called “readout” because the receiver’s ADC reads many samples while the positive read gradient is on.
PHASE ENCODE
Called “phase” because the lobe ends before ADC, yet its position-dependent phase pattern remains during readout.
Known phase-gradient area sets ky; read gradient plus ADC samples successive kx addresses.
The squares are calculated k-space addresses, not anatomy pixels. Here a “row” means seven data addresses with one shared ky label and changing kx labels. The sequence controller commands the gradient area; phase is the resulting angle pattern, not an agent that chooses.
The job stays named read or phase even when its physical coil recipe changes.
Logical axes belong to the prescribed image plane. Physical Gx, Gy, and Gz are fixed hardware channels. The scanner rotates the two logical commands into coil currents; the anatomy and image jobs do not have to line up with the bore.
RF CREATES TRANSVERSE SIGNAL
The RF pulse tips magnetization so a receive signal can exist. RF transmit is not readout: the receiver is protected and ADC is closed during excitation. Neither in-plane logical gradient job has encoded a k-space row yet.
A stronger read gradient crosses k-space faster. With dwell time fixed, that changes sample spacing and therefore FOV; with the acquisition prescription adjusted, it also affects bandwidth and distortion.
WHY CARE · This job sets read-direction sampling, bandwidth, chemical-shift displacement, and distortion behavior.After RF has created transverse magnetization, the signed area under the phase gradient creates a known phase-versus-position ramp and therefore sets ky. Changing that commanded area on successive TRs sets different ky addresses; it does not move to a literal y location in the patient.
WHY CARE · Phase steps strongly affect scan time, phase FOV, wrap, motion ghosts, and the direction of many artifacts.Both cause Δf while on
A magnetic-field gradient changes local precession frequency. “Frequency encoding” and “phase encoding” describe how the sequence uses the accumulated effect, not two different gradient mechanisms.
ADC open versus ADC closed
Readout samples continuously while Gread is on. Phase encoding applies a lobe before sampling, closes it, and carries the retained phase ramp into the readout window.
One row per repetition
Readout collects many kx points in one ADC window. Conventional 2D Cartesian imaging repeats the TR with a new phase area to cover many ky rows, so the phase loop often dominates scan time.
MODEL BOUNDARY · Events are separated here so each cause is visible. Real pulse sequences often overlap the read prephaser and phase-encode lobe, use tens to thousands of samples, include finite ramps and spoilers, and may collect multiple ky lines per TR with echo trains or segmented readouts.
Drag to orbit · physical frame stays fixed · camera motion changes no gradient
Gphysical = R · Glogical
| physical | Read | Phase | Slice |
|---|---|---|---|
| Gx | +0.687 | −0.508 | +0.520 |
| Gy | +0.310 | +0.852 | +0.423 |
| Gz | −0.657 | −0.129 | +0.742 |
The scanner synthesizes one +30.0 mT/m logical readout gradient by firing multiple fixed coils together: Gx +20.6, Gy +9.3, Gz −19.7 mT/m. Their vector sum points along the selected logical axis while readout, phase, and slice remain orthogonal.
Ideal per-axis amplitude example. Real systems also constrain slew rate, duty cycle, peripheral nerve stimulation, and vector-dependent safety limits.
04 / GRADIENT MOMENT & SPIN PHASE
The area under G
becomes phase.
Gradient amplitude alone does not set a k-space coordinate. Its signed time integral does. Build one lobe, add an opposite rewinder, and watch a three-dimensional spin ensemble wind into a phase pattern—or return coherently to k = 0.
Drag to orbit · scroll to zoom · the sum bay faces the camera but is not a physical location
M0(t) = ∫0t G(t′) dt′
k(t) = γ̄ M0(t)
φ(r,t) = 2π k(t) · r
The positive Gx area moves the sample to +kx. Spins separated along x retain different phases after the lobe turns off, so their vector sum is small.
Area, not height
A weak gradient held longer can create the same phase slope and k-space displacement as a short, strong gradient.
Polarity sets direction
Changing the sign of G reverses the phase ramp and moves to the opposite side of k-space along the selected logical axis.
Balanced area refocuses
For stationary spins in this ideal model, an equal opposite lobe cancels M₀. The phase ramp unwinds and the coherent signal returns at k = 0.
05 / LIVE CARTESIAN ACQUISITION
Build an image
from zero samples.
This is an interactive acquisition—not a prerecorded video and not an image being uncovered. Start with an intentionally empty reconstruction; each TR adds complex Fourier data from the whole slice, and the image is recalculated.
Two numbered phase-pattern labels—and the exact numerical step between them.
A k-space “address” is not a place in the patient and has no width. It is a number attached to one measured complex sample. That number states how many gradient-created phase cycles occur per metre across the object for that sample.
It labels the phase pattern used when one whole-object I/Q sample was measured. It does not select a body point.
For example, 9.10 and 13.65 m⁻¹ are neighbors when no planned address lies between them.
13.65 − 9.10 = 4.55 m⁻¹. An address itself has no size; Δk is only the numerical separation.
One cycle is a full 360° change in the gradient-created phase pattern, not one RF carrier oscillation and not a proton orbit.
Color is the phase of ρeff(x,y)e−i2πk·r. Here ρeff means the local echo signal after the sequence and receive-coil factors explained in the rho lab. The receiver adds every colored contribution into one complex number.
The background is the phantom’s exact Fourier spectrum. The coral ring marks the single receiver sample inspected at left.
S(kx,ky) = ∫∫ ρeff(x,y)e−i2π(kxx+kyy) dxdy
one k-space coordinate is a weighted sum from the entire excited sliceAt k = 0 the encoding phase is identical everywhere. All positive spin density adds coherently, producing the large center coefficient that represents the object’s average signal—not a center pixel.
The event block is expanded so short RF and gradient operations remain visible; the broken segment compresses idle recovery before the next RF pulse.
Violet is unsampled prephasing. Mint is the portion stored by the ADC. The yellow ring is kx = 0—the echo center on this ky row.
BODY TX ON · RX ARRAY DETUNED
+GZ · RF BAND SELECTS ZThe body transmit coil and slice-select gradient act together first: RF creates transverse magnetization only in the frequency-matched slab. No in-plane sample has been recorded yet.
k(t) = γ̄∫G(τ)dτ → S(k) → ℱ−1
gradients choose the Fourier address; the ADC stores the complex receiver voltage only while its gate is openA 220 mm FOV sampled at 64 readout points produces 3.44 mm pixels and Δk = 4.55 m⁻¹. Scrub the timeline or change a parameter to see the dependent quantities move together.
Ideal one-line-per-TR Cartesian GRE model with 64 complex samples and no ramp sampling. “Total sample rate” is used here because vendor bandwidth displays may instead report Hz/pixel. Here T₂* controls only the slow decay of transverse signal magnitude with time; use the TE/TR lab above for the full spoiled-GRE steady state.
Frequency is not amplitude.
Open the definitions below, then press Run. This explanation will follow RF transmit, gradients, receive sampling, and reconstruction through each repetition.
RF carrier frequency≈ 127.73 MHz at 3.0 T+
How fast the transmit field oscillates and the received voltage alternates. It is tuned near the ¹H Larmor resonance. It may be offset or shaped to select a slice, but it is not the waveform height.
RF amplitude · B₁⁺µT · slow strength outline+
How strong the transmit field is. Together with pulse duration it sets flip angle. The drawn outline is simply B₁⁺ strength versus time; it cannot display the tens to hundreds of millions of carrier cycles per second at this scale.
Gradient · Gx, Gy, GzmT/m · field slope+
Not a radio wave. A gradient slightly changes local Larmor frequency with position. Its signed area sets retained phase and the k address; while it remains on, its amplitude sets how many inverse metres that numerical address changes per second.
Received signalcomplex voltage · I + iQ+
The coil detects a tiny RF voltage near the carrier. The receiver removes that fast carrier and stores a complex sample: magnitude says how much coherent signal arrived and phase preserves spatial encoding.
Image brightness|inverse Fourier transform|+
Not raw RF amplitude and not a k-space location. Reconstruction combines every acquired complex sample, and magnitude display maps the resulting voxel signal to brightness.
No acquired data means no MRI image.
The reconstruction canvas is intentionally empty. Press Run or drag the bottom progress slider; it controls the simulated acquisition and recalculates the image from only the samples acquired so far.
- 00No datano image yet
- 01Near k = 0broad shape + contrast
- 02Larger |k|edges + fine detail
- 03All rowscomplete ideal model
THE RULEA k-space sample does not paint one image pixel. Every acquired complex coefficient changes the calculation of every reconstructed pixel.
Each acquired cell stores S = I + iQ. Its displayed brightness is L = ln(1 + √(I² + Q²)); this compresses the preview only. Position in k-space is spatial frequency—not a location in the head.
0 samples: the canvas is deliberately empty because no image can be reconstructed yet.
A local material property
creates a field beyond its boundary.
Magnetic susceptibility χ belongs to material, but the field perturbation measured by is a three-dimensional weighted sum of susceptibility everywhere. Follow a known synthetic source into its dipole field, GRE phase, and a deliberately imperfect reconstruction. The missing double cone in k-space is visible because it is the reason inversion needs a declared constraint.
READ THE DEPTH · Each button replaces the central volume with one causal stage, so unrelated geometry cannot compete for space. Source geometry is finite; signed field glyphs extend outside its wire boundary. In the inversion stage, the double cone is a surface in 3D k-space where the forward kernel is zero—not an anatomical cone. Drag empty space to orbit, zoom, or tap an object for its exact role.
DRAWABLE SIGNAL PHANTOM · OBJECT → I + iQ K-SPACE → RECONSTRUCTION
Build the object.
Watch all of k-space respond.
Draw with a finger, add movable shapes, or start from a simple head or three “material buckets.” Every edit rebuilds the local complex MR-signal map, calculates its 2D Fourier transform, and reconstructs only the retained k-space support. Water, fat, muscle-like, brain-like, and custom choices are teaching signal models—not literal samples, diagnoses, or fixed tissue brightnesses.
Left–right and anterior–posterior are physical positions inside one slice. Slice thickness is held fixed. A true 3D acquisition would add many kz encodes; decorative depth would invent data this tool does not calculate.
For one isolated unchanged object, translation leaves ideal Fourier magnitude unchanged but adds a k-dependent phase ramp. That is why a magnitude-only k-space picture cannot tell the whole story.
The labels “water” and “fat” select declared example parameters. They do not paint an MRI brightness directly; the current sequence equation calculates the signal first.
Large smooth regions concentrate energy near k = 0. Small objects and sharp edges require faster spatial phase patterns farther from the center.
Move material through X, Y, and Z.
Watch the chosen slice change.
The translucent solids are synthetic material volumes. The violet slab is the part selected for this 2D acquisition. Its textured middle plane is copied from the exact complex source array used by the k-space calculation below—never a decorative preview. Move the selected volume along Z to make it enter, cross, or leave the slab.
HOW TO USE THE MODEL · Drag empty space to orbit the camera. Pinch, wheel, or use +/− to zoom. Use the six sliders to change physical geometry; camera movement never changes the slice or k-space. Tap a solid, plane, axis, tether, or intersection outline to identify it.
Its 3D material contributes to the current 2D source.
The slab samples a cross-section of the sphere. Moving it in X or Y translates that cross-section; moving it in Z changes how much of the sphere intersects the selected slab.
Moves the material left/right inside the selected slice. For one unchanged isolated cross-section, this mainly creates a phase ramp along kx; it does not move a k-space point.
Moves the material posterior/anterior in the plane. The resulting location-dependent Fourier phase changes along ky.
Moves the 3D material through the slice direction. If less volume intersects the slab, the 2D object itself shrinks or disappears, changing k-space magnitude as well as phase.
Sets the full front-to-back depth of the ellipsoid or box. It changes how many slice positions can intersect the object; it is geometry, not slice thickness.
Moves the prescribed slab through the fixed 3D model. This chooses a different cross-section before encoding; it is not the phase-encoding gradient choosing an image row.
A thicker slab averages more through-plane material into each in-plane cell, increasing partial-volume mixing. This normalized lesson does not claim the real SNR increase from a larger excited voxel.
Sslice(x,y) = 1/Δz ∫slab s(x,y,z) dz
The lab samples this normalized through-plane average numerically, then applies the 2D Fourier transform. “Average” exposes partial-volume mixture while deliberately holding voxel-volume signal and noise scaling outside this comparison.X and Y are coordinates inside this acquired plane, so an unchanged translation is encoded primarily as a k-space phase ramp. Z is perpendicular to the plane: moving a finite 3D object along Z can change which material exists in the selected slice, so the source shape and coefficient magnitudes can change.
This sequence models one selected slab and encodes two in-plane directions. A true 3D acquisition would excite a volume and repeat an additional phase-encoding step across kz partitions. The separate trajectory chapter shows that 3D data geometry.
These are editable ellipsoids and boxes with illustrative material constants—not segmented anatomy, pathology, a patient scan, or a protocol recommendation. The finite slab is approximated with multiple through-plane samples and normalized to an average. Real slice profiles are not perfectly rectangular; voxel signal and SNR usually rise with excited volume. The next lesson calculates ideal Cartesian readout chemical shift; RF-profile error, slice-select chemical shift, coil sensitivity, noise, motion, flow, and 3D partition encoding remain outside this volume view.
One frequency difference.
Three consequences you can separate.
Water-like and fat-like hydrogen nuclei can occupy one physical voxel while their molecular environments make them resonate at slightly different frequencies. That difference rotates their transverse complex vectors apart with echo time, lets multiple complex echoes encode water and fat separately, and can be mistaken for position during Cartesian readout. Every view below is driven by one quantitative state.
Follow echo time through phase evolution, one mixed voxel, and Dixon separation.
The model uses a declared single fat peak at −3.5 ppm. Blue water and yellow fat arrows are transverse complex vectors—not molecules orbiting through the body. Opposed and in-phase echoes provide the two distinct water/fat basis states; a later opposed echo deliberately makes the solve overdetermined so model mismatch can leave a residual. The separation either uses the exact known local B₀ offset or omits it so you can expose leakage rather than hide the assumption.
READ THE GEOMETRY · In the first station, depth is echo time: blue water, yellow fat, and mint net endpoints trace one relative-phase cycle, while the bright cross-section is the selected TE. Arrow angle is complex phase and length is signal amplitude; these paths are signal evolution, not molecules moving through tissue. The opposed and in-phase voxel blocks use one shared linear 0-to-W+F display scale. The mixed-voxel and readout stations then separate TE cancellation from frequency-to-position displacement. The final station shows three measured complex echoes, an explicit shared-field correction, and the recovered water/fat amplitudes. Drag empty space to orbit; tap an object for its exact meaning.
Water and fat partially cancel in the mixed voxel.
At this echo time their relative angle is −180°. Their individual amplitudes remain 0.600 and 0.400, while the measured vector sum has magnitude 0.200.
The −3.5 ppm fraction stays fixed, but its hertz separation grows with B₀. The phase-cycle time becomes shorter and the readout displacement grows at fixed bandwidth.
Bandwidth changes the Cartesian frequency-to-position ruler below. It does not change the molecular fat–water phase evolution at a chosen TE or the three-echo signal equations.
This slider chooses one observation time for the live phasors and magnitude curve. It does not move the three fixed separation echoes.
This is a noiseless pre-interference signal-amplitude fraction. It is not calibrated clinical proton-density fat fraction or a prediction for anatomy.
A shared offset rotates both species together. It does not change their relative chemical phase or net magnitude, but it must be accounted for to separate complex echoes correctly.
S(TE) = ei[φ₀+2πΔfB0TE][W + Fei2πΔfFWTE]
TE 1.12 ms · W 0.600 · F 0.400 · ΔfFW −447.1 Hz · ΔfB0 +35 HzThe live phasors ask how water and fat add at one echo time. The readout artifact asks how the receiver maps frequency to X while sampling. Both start from Δf, but they are different calculations and different image effects.
The solve does not estimate a field map. It either receives the exact synthetic ΔfB0 used to create the echoes or intentionally receives zero. Real separation must estimate, calibrate, regularize, or otherwise handle field variation.
Quantitative inside this declared model does not mean patient-predictive. It uses one fat peak, three noiseless complex echoes, one shared voxel field offset, no T₂* or R₂* decay, no multi-peak spectrum, no eddy-current phase, and a known-field least-squares solve. It does not automatically estimate B₀, prevent water/fat swaps, calculate clinical PDFF, recommend echo times, or model anatomy.
PRIMARY FOUNDATIONS · Dixon 1984 · Glover & Schneider 1991 · Reeder et al. 2005
WHY THIS LINKED VIEW REMAINS 2D · The 3D model above uses depth where the math genuinely has it: a complex plane, a finite voxel, a spatial boundary, and multiple echo/output stations. This ruler compares one signed frequency axis with one reconstructed readout axis. Decorative depth here would invent a third quantity. The source/k-space/image canvases below show the full live Fourier consequence.
Fat is reconstructed toward −X while water stays registered.
The fat-like −3.5 ppm offset becomes a negative hertz error. The receiver treats that error as if it came from a different X position while the read gradient is on.
shiftpixels = Δfmaterial ÷ (BWreceiver,total / Nread)
−447 Hz ÷ (32,000 Hz / 128) = −1.79 pixelsThe material’s electron environment changes the local shielding and therefore its actual resonance frequency. The fat volume itself does not slide inside the patient.
Every fat contribution receives an additional phase that changes linearly with kx. The exact I and Q sums change across the array even though the unencoded source geometry is unchanged.
The inverse transform places fat at an apparent X offset. At a fat/water boundary this can create a bright overlap band on one side and a dark gap on the other.
Receiver bandwidth trades this displacement against noise, dwell time, gradient demand, and other protocol limits. Reversing the read direction moves the artifact to the opposite side; it does not eliminate the physical frequency difference.
This lower view applies only ideal Cartesian readout-direction displacement to the same one-peak fat model used above. The linked 3D module separately calculates TE-dependent complex phase and a deliberately bounded known-field three-echo separation; neither calculation turns this into a complete clinical Dixon reconstruction. Slice-select chemical shift, multi-peak fat, spatially varying B₀/susceptibility, gradient nonlinearity, echo-train distortion, suppression pulses, coil sensitivity, motion, and noise remain outside the readout model. Noise is held fixed while bandwidth changes so displacement can be isolated; clinically, wider bandwidth usually admits more thermal noise.
Color identifies the assigned teaching material; brightness shows its current calculated signal magnitude. The yellow outline is the selected movable geometry and is not part of the Fourier input.
Brightness is the logarithm of the size √(I² + Q²), not raw voltage and not anatomy. The yellow square marks coefficients retained for the reconstruction; dim outer data still exists in the full calculation.
Color is the angle of each I + iQ coefficient. Very weak coefficients are dark because their phase is unstable and visually unhelpful. Moving geometry changes this view even when its magnitude pattern stays the same.
The inverse transform uses retained I and Q, not the displayed log-magnitude picture. Reducing k extent removes measured fine spatial patterns, so edges spread and ring even though the display still contains 128 bins per side.
Drag one bucket and compare magnitude with phase.
The object and reconstruction move. For an isolated unchanged bucket, k-space magnitude stays essentially the same while k-space phase changes across many addresses.
A preset replaces the current teaching object. “Blank” means ρeff = 0 everywhere, so every ideal k-space coefficient is zero.
Move selects and drags whole geometries. Draw changes grid cells. Erase sets cells back to no modeled MR signal; it does not represent a special tissue.
Current tool: Move shape. Drag a colored geometry. With the canvas focused, arrow keys move the selected shape by 1 grid cell; Shift + arrow moves it by 5.
These are editable model parameters near 3 T—not universal tissue constants. Selecting a material changes the brush; in Move mode it also reassigns the selected shape.
A shape is only a boundary filled with one signal model. Adding or deleting it changes the object before Fourier encoding.
Water bucket · circle centered at −54.4 mm right/left coordinate and +41.3 mm anterior/posterior coordinate.
At a fixed 240 mm FOV and 128-cell model, each source cell is 1.875 mm wide. Brush size changes geometry, not acquired pixel spacing.
Longer TE leaves less transverse signal, especially for short-T₂/T₂* materials. It does not move a shape or change k-space address spacing.
Longer TR allows more longitudinal recovery, especially for long-T₁ water. It changes signal contrast and real scan time, not object geometry.
Reducing extent removes outer high-spatial-frequency coefficients. The object stays fixed, but reconstructed edges broaden and can ring.
Design the custom signal material
Only regions labeled Custom use these values. ρ is a relative available-signal scale; times are milliseconds; Δf is resonance offset in cycles per second (Hz).
Slocal = ρ(1 − e−TR/T₁)e−TE/T₂
In spin echo mode, the ideal 180° pulse refocuses static resonance offsets at the echo; this simple model therefore uses T₂ and zero residual material phase.S(k) = ∫ ρeff(r)e−i2πk·rdr
Every source cell contributes to every I + iQ coefficient. The inverse transform uses the coefficients themselves—not their log-magnitude screenshot.This is one ideal 2D Cartesian slice with a 240 mm FOV, uniform transmit and receive sensitivity, perfect gradients, and no receiver noise. These four base panels recalculate one internally stationary pose after each edit; the immediately following linked experiment separately applies declared rigid motion while ky rows are acquired. Material values are illustrative teaching numbers. The spin-echo option uses a simple 90°–180° signal law; the GRE option uses a simplified 90° recovery/decay model and phase evolution. The fat-like offset is −3.5 ppm × the current ¹H carrier (about −447 Hz at 3 T). During readout, the model applies each material’s offset as an exact linear kx phase ramp, producing the stated fractional-pixel X displacement after inverse Fourier reconstruction. In-plane overlapping shapes replace the material beneath them; through-plane slab samples can mix materials. A source-grid cell, screen pixel, nominal acquired interval, and clinically resolved feature are not the same thing.
Hold it still—or move it during the scan.
The editor above defines exact complex water/fat/muscle-like signal contributions—not a hidden photograph. Choose whether the entire slice moves together or only the yellow-selected geometry moves while the rest stays still. Then ask where that moving contribution was when each Cartesian k-space row was measured. A changing position can make the rows disagree and produce blur, ripples, or repeated-looking structure.
The slice changes position after some rows already describe its old position.
Early and late I + iQ rows now carry different translation phase. One stationary image cannot satisfy both sets, so the reconstruction distributes the mismatch as structured artifact.
HOW TO READ / TOUCH THIS · Drag or tap the left position graph to scrub acquisition time directly. The line is the chosen moving source’s physical X or Y displacement at each line time: either the whole slice or one selected geometry. Right: each short horizontal mark is one ky row; its color records the position that existed when that row’s I + iQ samples were acquired. The moving yellow cursor is a time/row link—not a proton, RF wave, or sensor traveling through the patient.
One k-space cell, opened into its actual I and Q arrows.
The left clock shows the complex coefficient if the source stayed at its starting position. The right clock shows the coefficient assigned to this row’s measurement time. These are calculated values from the current drawn source—not generic decorative arrows.
WHY THIS VIEW IS 2D · A demodulated complex sample has exactly two stored number coordinates: . Horizontal and vertical here mean those two numbers—not physical left/right or front/back in the patient. Arrow length is ; arrow direction is . Tap or drag the k-space change picture below, or focus it and use arrow keys, to inspect another coefficient. Selecting a coefficient changes only this microscope; it does not alter the scan or reconstruction.
WHAT THESE NUMBERS ARE MEASURED IN · This teaching source declares a local complex amplitude of 1.000 as a relative reference; it does not claim one proton or one volt. The forward discrete Fourier transform adds the modeled source-cell contributions, so these I, Q, and |S| values are reported in . Doubling every material's would double every displayed arrow and coefficient. A value such as 12.810 therefore means 12.810 times this model's declared local reference contribution after summation—not 12.810 volts, protons, tesla, or a directly calibrated clinical scanner reading.
In Whole-slice mode every drawn contribution translates together. In Selected-geometry mode the yellow-selected material object moves over a stationary background; bright color mixing marks visual overlap, while the equation below—not screen-color blending—adds the actual I and Q arrays. Drag left/right or up/down to set the signed endpoint; arrow keys set ±1 mm and Shift + arrow sets ±5 mm. The model stays 2D because it does not invent rotation, deformation, or through-plane entry.
Whole-slice translation multiplies every coefficient by one unit-length phase factor, so its magnitude stays unchanged. If only one object moves, that object’s vector rotates while the stationary background vector does not; their total I + iQ length can then change. Color shows total angle change. Dark coral rows have not yet been acquired. Tap or drag anywhere in this square to open that exact cell in the I/Q microscope above.
This is calculated from the motion-modified complex rows—not a picture revealed underneath. A single constant displacement produces a clean shifted result; a line-dependent displacement can spread signal into repeats, blur, or ripples.
Mint is brighter and coral is darker than a held-still reconstruction made from the exact same partial row set. Matching row support isolates motion from the ordinary incompleteness of a half-finished scan.
The sign chooses + or − along the selected X or Y axis. A larger absolute distance writes a larger translation angle because spatial frequency k is multiplied by displacement in metres. Planned k-space addresses do not move.
Sets when the chosen moving source jumps from its starting position to signed endpoint A. It affects only Sudden move; breathing-like motion uses the separate cycles control.
Sets how many smooth back-and-forth position cycles occur while all selected rows are acquired. It affects only Breathing-like mode and is not breathing rate in breaths per minute.
Scrubbing chooses how many rows currently enter both reconstructions. It does not move anatomy by itself; the selected position history decides what pose each newly included row measured.
Smove(kx, ky(j)) = Sstill(kx, ky(j))e−i2π[kxΔx(j)+ky(j)Δy(j)]
At each line number j: k is in cycles/m, Δ position is converted from mm to m, and 2π converts cycles to radians. The exponential has no unit and rotates I + iQ without changing its length.Sline = Sbackground + Sselectede−i2π(kxΔx+kyΔy)
The stationary background vector keeps its I/Q angle. The selected object vector rotates with position. Adding those two arrows can change both the total angle and total length measured at one k-space address.The scanner deliberately changes the Y-gradient area before readout. That area leaves a controlled Y-dependent spin angle, assigning one ky address to the following readout. “Phase direction” is shorthand for the image direction localized by those repeated phase-encoding steps; phase itself has no intention and chooses nothing.
If all rows share the same Δx and Δy, their phase factors are mutually consistent with one translated object. If Δ changes between rows, no single stationary object has all those coefficients. Reconstruction must express the inconsistency as artifact.
Linear and centric order can measure the same final rectangular addresses at different times. Because motion is a function of time, each order assigns positions to different ky rows. A sudden step in linear order can make an abrupt phase boundary across neighboring ky rows and produce replica-like ripples; centric order can assign different poses to central broad-contrast data and outer edge data. Exact ghosts and blur still depend on the object and motion curve.
The rigid-translation factor has length 1. Multiplying an I + iQ vector by it rotates the vector but preserves √(I² + Q²). That is why this lab displays phase error rather than pretending a log-magnitude preview proves the data are uncorrupted.
At one k-space address, the receiver stores one total I + iQ value: the vector sum of every modeled source contribution. In Selected-geometry mode the background arrow stays fixed while the chosen object’s arrow rotates. Their sum can become longer or shorter even though the moving object’s own arrow keeps the same length.
It is the yellow-selected ellipse or rectangle from the editor above, assigned to water-, fat-, muscle-, brain-, or custom-like signal. The model calculates it as an additive complex contribution over the stationary remainder. If they overlap, signals add; the object does not push, erase, or collide with tissue.
Whole-slice mode is ideal rigid translation of the entire 2D complex source. Selected-geometry mode splits the teaching source into one chosen additive complex contribution plus a stationary remainder; it does not simulate collision, displacement of tissue, or exact occlusion. Both operate inside a periodic 240 mm discrete-Fourier field of view. They model no rotation, deformation, through-plane motion, flow, spin-history change, coil-sensitivity change, B₀ change, noise, navigator, gating, echo train, parallel imaging, interpolation, or motion correction. Breathing-like is a sinusoidal position curve, not a physiological breathing model. Signal crossing a field-of-view edge wraps to the opposite side; that is a stated Fourier boundary, not anatomy teleporting.
Make one change.
See where its consequences go.
The three views subtract a pinned BEFORE state from the current state. This isolates what drawing, moving, changing material, changing TE/TR, or discarding outer k-space actually changes. It does not pretend that one k-space point belongs to one image pixel.
Press the button to copy the current complex source, full calculated k-space, retained support, and reconstructed magnitude into a temporary reference.
Drag or draw geometry, reassign water/fat-like material, change TE or TR, switch echo model, or reduce the retained k-space square.
Object-space change transforms into global ΔS across k-space. The final panel shows where retained-data reconstruction became brighter or darker.
The current state and pinned BEFORE state are identical. Make one edit above; the difference views will update without hiding either full current k-space map.
BEFORE version 1 · spin echo · TE 20 ms · TR 2000 ms · extent 128²Brightness is |snow − sbefore|. Color is that complex change’s angle: a removed positive-real signal points 180° opposite an added one. Phase-only material changes therefore remain visible instead of being mistaken for “no change.”
Brightness is log(1 + |ΔI + iΔQ|) for the exact full-spectrum subtraction. Tap this square to inspect that address below. A local edit usually spreads across many coefficients; this is not a map of where the edit sits in the body.
Mint means the displayed reconstructed magnitude increased; coral means it decreased. This signed brightness difference is not the same operation as taking |ΔS|: inverse Fourier reconstruction is complex first, and magnitude is taken afterward.
ΔS(k) = Snow(k) − Sbefore(k) = ℱ{snow(r) − sbefore(r)}
Fourier transformation is linear: subtracting the two source states first gives the same complex k-space change as transforming both and subtracting their I and Q values address by address.No edit is present yet. After a local change, each k-space address compares the whole changed object with a different phase pattern, so many ΔI/ΔQ values can become nonzero.
A translated isolated object can keep the same current |S(k)| while its current phase changes. Complex subtraction still detects it because ΔS compares I and Q, not only two log-magnitude screenshots.
The current and BEFORE states retain the same k-space extent. If only extent changes, the source and full calculated ΔS stay zero while the reconstructed result changes because a different subset enters the inverse transform.
This is exact subtraction between two noise-free digital model states with perfect alignment. Clinical subtraction imaging also depends on motion registration, receiver noise, coil sensitivity, scaling, sequence timing, physiology, and validated reconstruction; color here is not a diagnosis.
Where does one (I + iQ) number come from?
Tap or drag on either k-space square. The marker chooses one spatial-frequency address—not a place in the patient. Arrow keys move a focused marker by one address; Shift + arrow moves it by eight. The two pictures below then rebuild that coefficient from every nonzero source cell.
Brightness is that cell’s local signal magnitude. Color is its material phase plus the selected address’s position-dependent Fourier angle. Empty cells contribute exactly zero and remain dark.
Each short segment adds the total contribution from one source row; an empty row adds zero, so the path stays at the same point. The yellow arrow from the origin to the endpoint is the stored coefficient. A winding path means positive and negative I/Q parts partly cancel.
S[kx,ky] = Σx,y s[x,y]e−i2π(kxx+kyy)
The Σ symbol means add one rotated complex contribution from every source cell. Coordinates are converted to metres inside the continuous equation; this 128-cell implementation uses exactly equivalent normalized grid fractions.At k = 0, the Fourier encoding factor contributes the same angle at every position. Local material phase can still differ in GRE mode.
The model rotates every nonzero local complex signal by the chosen spatial angle, then adds all I parts and all Q parts separately.
This coefficient mainly reports the object’s total coherent complex signal. It establishes average level and broad contrast, not the location of one central voxel.
It is currently retained, so its complex value participates in every reconstructed output cell.
The left picture has the same two physical in-plane position axes as the selected slice. The right picture is the mathematical complex plane: horizontal I and vertical Q. Neither axis is scanner depth. Turning either into decorative 3D would invent a physical direction that the calculation does not contain.
HIGHER-RESOLUTION FOURIER LAB · 64² → 128² → 256² COMPLEX SAMPLES
Keep the reconstruction.
Add detail, contrast, voxel SNR, and time.
This is a second, independent reconstruction built from a 256 × 256 digital teaching phantom. Matrix changes sampled detail and in-plane voxel size at a fixed 220 mm field of view. TE and TR change tissue signal. Slice thickness changes voxel volume. Receiver bandwidth changes admitted noise and readout time. NEX repeats and averages the complex measurements. Every control enters the calculated I/Q noise or Fourier reconstruction, so smaller pixels can gain detail while losing confidence.
At fixed FOV, more samples reach larger |k| and make smaller in-plane voxels. Smaller voxels contain less contributing material, so their signal competes less strongly with noise.
Longer echo time waits longer before k-space center is sampled. Short-T₂ tissues lose more coherent spin-echo signal than long-T₂ fluid.
Longer repetition time lets more longitudinal magnetization recover before the next RF pulse and lengthens this simplified scan-time estimate.
A thicker 2D slice combines more material per voxel and usually raises SNR, but can mix structures together through the slice.
Wider listening bandwidth accepts more frequency noise and shortens the ADC window. It also reduces read-direction off-resonance shift in the separate artifact lab.
Repeating the same encoding and averaging complex I/Q reduces random noise by √NEX, while scan time grows directly with NEX.
Every acquired I and Q number contains wanted voltage plus random electrical variation. The noise control declares the baseline amount before voxel, bandwidth, and averaging factors.
One I + iQ sample is one whole-object spatial pattern. The inverse Fourier transform combines all acquired coefficients—including their noise—into every reconstructed pixel.
All sampled spatial-frequency patterns now contribute at 256 × 256.
The full matrix contains four times as many samples along each axis—and sixteen times as many complex coefficients—as the 64 × 64 beginner reconstruction. Every stored coefficient contributes to every output pixel; no photograph is uncovered from underneath.
This first panel is a known digital input used to test the math—not an image secretly revealed during acquisition. Its gray levels use the spin-echo signal equation for five illustrative tissue classes.
Mint pixels are acquired I + iQ coefficients. Coral rows are planned but not yet acquired; the dark outer area lies beyond the selected matrix. Log magnitude makes weak coefficients visible but does not discard their stored phase.
At full 256 × 256 support the finest digital phantom targets are better separated. This is ideal sampling detail, not guaranteed clinical diagnostic resolution or a patient image.
S = ρH(1 − e−TR/T₁)e−TE/T₂
TE/TR change complex-signal weights before Fourier encoding; matrix and progress change which spatial-frequency coefficients survive. This model excludes echo trains, variable refocusing angles, and T₂* decay.At fixed 220 mm FOV, 256 samples per axis give 0.86 mm pixel spacing and reach ±581.8 cycles/m. This is sixteen times as many complex samples as 64², not sixteen times guaranteed clinical resolution.
Short TE preserves more signal. Increasing TE dims short-T₂ tissues faster and can make long-T₂ fluid relatively brighter; matrix, FOV, and pixel size stay fixed.
Longer TR allows more recovery before the next excitation and lengthens a one-line-per-TR acquisition. It changes contrast and signal, not Δk or pixel dimensions.
At 256 × 256, a 5.0 mm slice makes a 0.86 × 0.86 × 5.0 mm voxel. A thicker slice contains more signal-producing material and improves this SNR model, but real anatomy is averaged across more depth.
32 kHz across 256 read samples means 125 Hz per pixel and an 8.00 ms ADC window. Wider bandwidth listens to a broader noise spectrum, increasing noise as √BW while shortening readout.
NEX 1 measures each selected k-space address once. Repeating and averaging reduces random noise by √NEX, not by NEX, and multiplies the one-line-per-TR scan time.
SWIPE THE DIAGRAM SIDEWAYS · EVERY LABEL STAYS FULL SIZE
This 3.69 mm³ reference voxel is the comparison point. The image signal is held to one display scale; the visible complex noise changes so the displayed grain represents the calculated voxel-SNR penalty or benefit rather than a brightness-window trick.
SNRrelative ∝ (Δx · Δy · Δz)√NEX ÷ √BWrx
tscan = TR · Ny · NEX
Each stored I and Q value receives a separate random-looking positive or negative wiggle before the inverse Fourier transform. Here σ means the typical wiggle size and 0.06% is relative to this lab’s fixed baseline k=0 coefficient—not volts and not a scanner setting.
σimage = σsample√Nacquired ÷ 256² · SNRproxy = Sbright ÷ σimage
σsample is added independently to both I and Q at each acquired k-space address after the declared voxel-volume, bandwidth, and averaging factors are applied. The ratio uses complex data before magnitude display; it is dimensionless and is not a calibrated clinical SNR measurement.Drag backward to remove outer ky rows from the current matrix. The reconstruction is recalculated from acquired complex coefficients only; this never uncovers a stored finished picture.
The shapes are a synthetic digital phantom, not anatomy or pathology. Tissue constants are illustrative near 3 T and the equation assumes a basic 90°–180° spin echo, one phase line per TR, one 2D slice, and uniform RF/receive sensitivity. The SNR model uses 0.86 × 0.86 × 5 mm, 32 kHz, and NEX 1 as its declared reference. It scales signal confidence with voxel volume, noise with √receiver-bandwidth, and averaging benefit with √NEX. The source and ideal tissue brightness stay normalized to one display scale; changing voxel volume therefore changes calculated complex noise and grain instead of merely making the whole image brighter. Slice thickness does not create through-plane tissue mixing here because this phantom has no modeled Z anatomy. When noise is above zero, one fixed standardized pattern is scaled and added separately to I and Q so comparisons do not flicker; a real repeat would draw new noise. The noise percentage is relative to a fixed internal k=0 reference, not volts or a console setting. Motion, flow, diffusion, fat-water chemical shift, off-resonance, echo trains, partial Fourier, parallel imaging, filtering, coil maps/combination, multiple slices, RF preparation, dead time, and hardware limits remain omitted. The lab always draws 256 display bins across the FOV, so 64 or 128 acquisitions contain calculated in-between display values. FOV/N is a nominal acquired interval, not guaranteed measured resolution. Real protocol selection and image interpretation require qualified MRI staff and validated scanner methods.
SNR IMAGE MICROSCOPE · ONE FAIR A/B COMPARISON
How far does the wanted image stand above random receiver variation?
Signal-to-noise ratio, or SNR, is a comparison—not a substance inside the patient. The numerator is a declared repeatable wanted signal. The denominator is the standard deviation σ (“sigma”): the typical spread of random measurements around their mean. A ratio of 20 : 1 means the declared signal is twenty times that noise spread. It does not mean that 1 of every 20 pixels is noise.
In this lab, the numerator is the brightest current ideal tissue signal after TE/TR weighting. Real scanners must state how and where signal is measured.
σ is one standard deviation of reconstructed I or Q before magnitude. It has the same relative signal unit as the numerator, so their units cancel in the ratio.
Higher SNR usually makes weak boundaries and small intensity differences more believable. It does not by itself create contrast, prevent blur, or prove diagnostic quality.
Each noisy k-space I/Q coefficient enters every output pixel through the inverse Fourier transform. The grain is reconstructed from raw-data variation; it is not sprinkled over a finished image.
This is not the hidden source or a promise of a perfect scan. It uses the same selected matrix, TE, TR, and acquired ky rows as panel B, but mathematically removes only the added receiver-noise values.
This is an exact duplicate of the main reconstruction above. The stable random pattern prevents flicker while a slider changes its scale; a new real acquisition would contain a different noise realization.
The map subtracts the noise-free magnitude value from the noisy magnitude value at every display location. It stretches the largest absolute change to full color, so its brightness is not on the same scale as A or B. Read the numbers below for actual size.
SNR = μsignal ÷ σnoise
μ (“mu”) means the declared average or repeatable signal measurement. σ (“sigma”) means the standard deviation—the typical random spread measured with the same signal scale. The ratio has no unit because relative-signal units divide by the same relative-signal units.The target stays put. Random error lands above or below it.
The dots are a standardized statistical illustration, not readings secretly taken from one image pixel. Their vertical scatter uses the current calculated noise-to-signal ratio. Purple dots are the NEX repeats currently averaged; outlined dots show repeats that are available but not selected.
Which knob changed signal, noise, detail, or time?
A clean image can still fail to separate two similar tissues.
SNR compares one declared signal with random spread. Contrast-to-noise asks whether the difference between two signals is large compared with that spread. If two tissues both measure near 0.70, excellent SNR can make both stable while their boundary remains faint.
“The SNR is 20” is incomplete without saying how it was measured.
Magnitude processing, multi-coil combination, parallel imaging, filtering, spatially varying coil sensitivity, and the chosen signal/noise regions change the statistic. This site therefore labels its value a bright-reference complex-channel teaching proxy, not a scanner-certified clinical SNR.
Low SNR can make available detail untrustworthy.
A matrix may support a small nominal pixel while grain hides a weak structure or makes an apparent edge unstable. More NEX can improve random-noise confidence but costs time; thicker voxels collect more signal but mix anatomy; narrower bandwidth reduces admitted noise but changes other readout tradeoffs.
DETAIL MICROSCOPE · THE SAME PHYSICAL SQUARE ON BOTH IMAGES
Do not hunt for the extra detail.
Put it side by side.
Drag either mint square with a mouse or finger. Both squares stay locked to the same place. The left magnifier shows the declared digital source; the right magnifier shows what the currently acquired I + iQ data can reconstruct there. Arrow keys move a focused square; Shift + arrow moves it farther.
This is not scanner output. It is the answer key supplied to the Fourier calculation, magnified with hard square display bins so its tiny targets are visible.
34.38 mm square near the lower-left teaching targets
220 mm ÷ 256 acquired samples = 0.86 mm. This number says how the sampled width is divided; it does not prove that a 0.86 mm object is visibly resolved.
The yellow lines mark the 256 × 256 acquisition intervals. At this setting one acquired interval and one displayed bin have the same width.
All 65,536 complex samples are present. Compare the circle gaps and line edges with the known source; similarity here follows the ideal sampled Fourier data, not a hidden photograph.
Display grid ≠ acquired detail ≠ measured sharpness
This teaching result always uses 256 display bins across 220 mm. With a 64 matrix, each acquired interval spans four display bins in each direction; the extra in-between gray values are calculated from the same 64 × 64 Fourier data. They make a smoother-looking screen, but cannot invent missing outer-k-space patterns.
A point response must stay narrow enough
An ideal mathematical point becomes the system’s point-spread function, or PSF. Finite k-space, filters, gradient errors, relaxation during readout, motion, off-resonance, and reconstruction can broaden that response. Two tiny objects blur together when their broadened responses overlap too much—even if the screen pixels are smaller.
Receiver noise is now visible and adjustable
The lab adds a declared teaching noise level to acquired I and Q before reconstruction, then scales its effect from voxel volume, receiver bandwidth, and NEX. Compare 64² with 256²: the larger matrix can carry finer patterns, but its smaller voxels have less signal capacity. Add averages to recover confidence and watch the planned time grow.
Near k = 0
Contrast & broad shape
Slow spatial variation. High signal energy. Acquired at the echo center.Large |k|
Edges & fine detail
Rapid spatial variation. Extending farther raises the ideal resolution limit.Sample spacing Δk
Field of view
Closer k-space samples encode a wider unaliased FOV: FOV = 1 / Δk.06 / TRAJECTORY STUDIO
Gradients draw
the path.
Here is a spatial-phase address, not a physical position or a moving particle. A gradient changes that address over time: hold one component constant and the address follows a straight line; reverse it and the address turns back; vary two components together and the address can spiral. Compare five encoding strategies built from that rule.
Count full turns of relative spin phase across distance.
k = 100 m⁻¹ means the gradient-created phase pattern completes 100 turns per metre. Therefore two fixed positions 10 mm apart differ by one full 360° turn at that instant.
The marker is the current data address where ADC stores a whole-object complex sample. It is not a proton, voxel, anatomical location, RF carrier cycle, or signal amplitude.
0° 2.5 mm
90° 5.0 mm
180° 7.5 mm
270° 10 mm
360° = 0°
dk/dt = γ̄G(t)
dk/dt is the rate at which the spatial-phase address changes, in m⁻¹/s. G(t) is the field slope in T/m. Positive G moves toward +k, negative G toward −k, and G = 0 holds the address still.
WHY CARE · The visited extent sets potential detail, spacing sets FOV, and a wrong address from delay or miscalibration creates blur, ghosts, or geometric distortion.
Drag to orbit · scroll to zoom · tap an object to identify it
MULTI-SHOT · RECTILINEAR
One echo, one row.
A prephaser sets the negative-kx starting address. The readout gradient traverses one constant-ky line while ADC samples. On the following repetition, a different signed phase-gradient area creates a different retained phase ramp and sets the next ky value.
dkdt= γ̄ G(t)
One dwell of 6.83 mT/m advances k by exactly one Δk = 4.545 m⁻¹, so 64 dwells span 2kmax = 290.9 m⁻¹ and resolve 3.44 mm.
iThe delay is a pure time shift of the physical gradient: Gactual(t) = Gcommand(t − τ), so kactual(t) = kcommand(t − τ). ADC timestamps never move. Unchecked, the reconstruction labels each sample with the coordinate the sequence commanded — which is what a scanner does when it has not measured its own trajectory.
Peak per-axis |G| 25.6 mT/m of 40 · peak per-axis slew 179 T/m/s of 180 · within declared hardware.
Where data landed · what one point becomes · what the object becomes.
Signal is generated where the gradients actually reached, then placed where reconstruction assumes. The mask and centred-point response describe the coordinates used for reconstruction; with a trajectory mismatch, that point response is not a universal convolution kernel.
Fully sampled Cartesian data reconstructs the numerical object exactly: the point spread function is one pixel wide and its sidelobes sit below −60 dB.
Gradients are trapezoids on a Δt/20 raster with exact areas and declared per-axis peak amplitude and slew limits; k(t) = γ̄∫G dt is integrated with the same quadrature the waveform is built on. The timing delay is a pure time shift, nothing else — no amplifier low-pass response, eddy-current spectrum, B₀ cross-term, or concomitant field. The object is a synthetic asymmetric array with two-pixel bar patterns, not anatomy. Signal is noiseless; reconstruction uses Kaiser–Bessel gridding and iterative density compensation, with measured interpolation error near 10⁻⁵. Relaxation, off-resonance, chemical shift, flow, motion, coil sensitivity, gradient non-linearity, ramp sampling, partial Fourier, and parallel imaging are all outside this model; the neighbouring EPI lab adds off-resonance and T₂* to the same kind of calculation.
Cartesian mode: one readout per repetition, one ky per shot. Wall-clock scan time needs TR, which this lab does not model.
ADVANCED LAB / QUANTITATIVE SINGLE-SHOT EPI
One fast zigzag.
Three different image consequences.
The trajectory above shows where EPI samples. This lab calculates what those samples contain. Every ky line is acquired at a different time, so a declared Δf(x,y) map writes line-dependent complex phase; finite T₂* weights the echo train; and an odd/even phase mismatch creates an exact FOV/2 ghost. The 3D object, time-colored path, k-space plane, reconstruction, plots, and metrics all share one 64 × 64 complex calculation.
The mint height field is the exact solved |IFFT{S}|. The violet contour comes from the undistorted input, field-scaled arrows show the local B₀ displacement predictor on the declared physical scale, and the coral surface isolates the analytic FOV/2 ghost component.
DRAG TO ORBIT · + / − TO ZOOM · TAP AN OBJECT TO IDENTIFY IT
BWPE,pix=1 / (Ny · ESP)
Δypix=p · Δf / BWPE,pix
|ghost| / |main|=|tan(φ/2)| ?
Geometric distortion
Each object point accumulates a different phase before its ky line is sampled. A uniform Δf becomes a pure cyclic phase-direction shift; a spatially varying field produces local compression, stretching, and pile-up.
Phase-direction blur
Outer ky lines are measured farther from the echo center and receive less weight in this declared symmetric envelope. That apodizes ky and broadens the phase-direction point response.
Nyquist N/2 ghost
Alternating-line phase modulation splits the object into a main coefficient and a copy shifted by exactly half the phase FOV. The printed amplitude ratio is independent of the phantom.
This is one noiseless, fully sampled, single-shot Cartesian gradient-echo EPI readout. It assumes an ideal instantaneous excitation; linear ky order; ideal ramps and phase blips; perfect correction of alternating read direction into a Cartesian grid; one synthetic real-valued object; one static analytic Δf map; a symmetric exp(−|t|/T₂*) line envelope; and one spatially constant odd/even phase mismatch. It omits chemical species, through-voxel dephasing, nonlinear gradients, eddy-current spatial terms, readout delay, concomitant fields, motion, flow, diffusion weighting, spin-echo refocusing, partial Fourier, parallel imaging, SMS, multishot segmentation, coil sensitivities, noise, field-map correction, and patient prediction. Cyclic wrap is intrinsic to the finite discrete Fourier model.
Gradient amplitude
Controls how rapidly the numerical k address changes. A stronger readout gradient covers more spatial-frequency address per unit time; nothing physically flies through the patient.
Slew rate
Limits how sharply a path can turn. Fast switching also drives acoustic noise and peripheral nerve-stimulation constraints.
Sampling window
The path may move while the receiver is off. Only coordinates visited during ADC become acquired data samples.