Array functions and settings#
The bartorch namespace holds array functions on tensors, most of them
calling BART’s commands, and the process-wide settings of the embedded
library. Axis arguments are indices into a C-order shape; results are not
recorded by autograd.
Fourier transforms#
Object |
Description |
|---|---|
Fourier transform along axes; centred and unnormalized by default, unitary with |
|
Inverse of |
|
Cyclic shift of the zero frequency to the centre, or back |
|
Multiplication by the alternating phase relating centred and uncentred transforms |
|
Non-uniform Fourier transform of an image along a trajectory |
|
Adjoint non-uniform Fourier transform, from samples to an image |
|
Sampling density compensation weights of a trajectory (Pipe-Menon iteration) |
K-space windows and readout#
Object |
Description |
|---|---|
Radial or separable Hann window on a k-space grid |
|
Radial or separable Fermi window on a k-space grid |
|
Multiplication of k-space by a Hann or Fermi window over its trailing axes |
|
Cropping of the readout field of view in image space |
Wavelet transforms#
Thresholding#
Object |
Description |
|---|---|
Soft thresholding of the modulus, \(x \max(1 - \lambda/\lvert x\rvert, 0)\) |
|
Hard thresholding, keeping entries with \(\lvert x\rvert > \lambda\) |
Array utilities#
Object |
Description |
|---|---|
Cropping or zero padding to a shape, anchored at the centre, the front or the start |
|
Reversal along axes |
|
Cyclic shift along axes |
|
Cyclic convolution with a kernel |
|
Moving median along one axis |
|
Moving average along one axis |
|
Division by the \(\ell_2\) or \(\ell_1\) norm over axes |
|
Maximum or minimum intensity projection |
|
Unwrapping of the real part along one axis, for a given period |
|
Casorati matrix of overlapping blocks |
|
Root sum of squares over axes |
Interpolation#
Object |
Description |
|---|---|
Sampling of an array at fractional voxel positions |
Coil kernels#
Object |
Description |
|---|---|
Sensitivities as their low-frequency k-space kernels |
|
Sensitivities from k-space kernels |
Errors#
Object |
Description |
|---|---|
Exception raised when a BART command or operator fails, carrying BART’s message |
Runtime settings#
Object |
Description |
|---|---|
Threads used by BART, its FFT and FINUFFT’s host transforms |
|
Whether commands work on copies of their inputs (default) |
|
BART’s verbosity |
|
Current verbosity |
CUDA#
Object |
Description |
|---|---|
Whether the library was built with CUDA and a device is present |
|
Number of CUDA streams BART uses |
|
Whether BART caches freed device memory |
Build information#
Object |
Description |
|---|---|
Version of the embedded BART |
|
Compiler, nested-function mode, OpenMP and CUDA configuration of the library |
|
Library serving each BLAS and LAPACK routine and the FFT |