surfa.load_volume#

surfa.load_volume(filename, fmt=None)#

Load an image Volume from a 3D array file.

Parameters
  • filename (str or Path) – File path to read.

  • fmt (str, optional) – Explicit file format. If None, we extrapolate from the file extension.

Returns

Loaded volume.

Return type

Volume