tools.wavepsf#
- bartorch.tools.wavepsf()#
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, default=False) – Set to use a cosine gradient wave (
-c)x (int | None, default=None) – Number of readout points (
-x)y (int | None, default=None) – Number of phase encode points (
-y)r (float | None, default=None) – Resolution of phase encode in cm (
-r)a (int | None, default=None) – Readout duration in microseconds. (
-a)t (float | None, default=None) – ADC sampling rate in seconds (
-t)g (float | None, default=None) – Maximum gradient amplitude in Gauss/cm (
-g)s (float | None, default=None) – Maximum gradient slew rate in Gauss/cm/second (
-s)n (int | None, default=None) – Number of cycles in the gradient wave (
-n)**extra (Any) – Further BART flags, passed through by name.
- Returns:
output
- Return type:
torch.Tensor