surfa.load_slice#

surfa.load_slice(filename, fmt=None)#

Load an image Slice from a 2D 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 slice.

Return type

Slice