pysap.base.loaders.numpy_binary#

class npBinary[source]#

Bases: pysap.base.loaders.loader_base.LoaderBase

Define the numpy binary loader.

allowed_extensions = ['.npy']#
load(path)[source]#

A method that load the image data and associated metadata.

Parameters

path (str) – the path to the image to be loaded.

Returns

image – the loaded image.

Return type

Image

save(image, outpath, clobber=True)[source]#

A method that save the image data and associated metadata.

Parameters
  • image (Image) – the image to be saved.

  • outpath (str) – the path where the the image will be saved.