bartorch.tools.wavepsf#
- bartorch.tools.wavepsf(*, c=False, x=None, y=None, r=None, a=None, t=None, g=None, s=None, n=None, **extra)#
Generate a wave PSF in hybrid space. - Assumes the first dimension is the readout dimension. - Only generates a 2 dimensional PSF. - Use reshape and fmac to generate a 3D PSF. 3D PSF Example: bart wavepsf -x 768 -y 128 -r 0.1 -a 3000 -t 0.00001 -g 0.8 -s 17000 -n 6 wY bart wavepsf -c -x 768 -y 128 -r 0.1 -a 3000 -t 0.00001 -g 0.8 -s 17000 -n 6 wZ bart reshape 7 wZ 768 1 128 wZ wZ bart fmac wY wZ wYZ
Runs
bart wavepsf.- Parameters:
c (bool) – Set to use a cosine gradient wave (
-c)x (int | None) – Number of readout points (
-x)y (int | None) – Number of phase encode points (
-y)r (float | None) – Resolution of phase encode in cm (
-r)a (int | None) – Readout duration in microseconds. (
-a)t (float | None) – ADC sampling rate in seconds (
-t)g (float | None) – Maximum gradient amplitude in Gauss/cm (
-g)s (float | None) – Maximum gradient slew rate in Gauss/cm/second (
-s)n (int | None) – Number of cycles in the gradient wave (
-n)**extra (Any) – Further BART flags, passed through by name.
- Returns:
output
- Return type:
torch.Tensor