Menu

Python Sparse data Analysis Package

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.

class pysap.base.loaders.loader_base.LoaderBase[source]

Base class for all loaders.

can_load(path)[source]

A method checking the file extension.

Parameters

path : str

the path to the image to be loaded.

Returns

out : bool

True if the file extension is valid, False otherwise.

can_save(outpath)[source]

A method checking the output file extension.

Parameters

outpath : str

the path where the the image will be saved.

Returns

out : bool

True if the output file extension is valid, False otherwise.

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 : Image

the loaded image.

save(image, outpath)[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.

Follow us

© 2019, Antoine Grigis Samuel Farrens Jean-Luc Starck Philippe Ciuciu