BrainWeb.isochromats#
- BrainWeb.isochromats()[source]#
Return the brain sampled as isochromats, for
simulate().The voxels are averaged in cubes
spacingwide. Each tissue a cube holds isspinsisochromats of proton density, between them, the tissue’s times the fraction of the cube it fills times the cube’s volume in m³, precessing at the cube’s meanfield_ppm: at the cube’s centre, or over the cube for a"box"voxel, and at the quantiles of the Lorentzian line of the tissue’s T2’ (Bloch engine).- Parameters:
spacing – Width of a cube, in metres: a whole number of millimetres.
field_t – The magnet’s field, in T, at which fat’s chemical shift is resolved into a frequency, with pypulseqpp’s default gamma.
off_resonance_hz – Frequency of every isochromat from the scanner’s centre frequency, in Hz, beside its chemical shift.
region – Which isochromats are kept, from their
(n, 3)positions, in m, and(n,)frequencies, in Hz, asSlabsanswers; the whole head without one.coil – The scanner’s coil the brain is scanned with, in place of the phantom’s coils.
spins – Isochromats per tissue of a cube: a cube number for a
"box".voxel –
"point"or"box": where a cube’s isochromats lie.motion – The head’s motion, as
Isochromatstakes it.seed – Seed of the frequencies of each voxel’s isochromats and of their Brownian walks.
threads – Worker threads of the simulation; 0 for every core.
device – The device the ADC windows are read and the runs of repetitions carried on, as
Isochromatstakes it; the engine does both itself without one.
- Raises:
ValueError – If
spacingis not a whole number of millimetres,field_tis not given, the brain has coils of its own andcoilis given, orspinsdo not fill avoxel.