patch_denoise.bindings.utils#

Common utilities for bindings.

Functions

fast_cuda_check

Instantly checks if PyTorch is installed and CUDA is supported by the system.

load_as_array

Load a file as a numpy array, and return affine matrix if available.

load_complex_nifti

Load two nifti image (magnitude and phase) to create a complex valued array.

save_array

Save array to file, with affine matrix if required.