Utils

default_load_fn_2d

default_load_fn_2d(img_file, *label_files, img_shape, n_channels=1)[source]

loading single 2d sample with arbitrary number of samples

Parameters:
  • img_file (string) – path to image file
  • label_files (list of strings) – paths to label files
  • img_shape (iterable) – shape of image
  • n_channels (int) – number of image channels
Returns:

  • numpy.ndarray – image
  • Any – labels