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.mat.MAT[source]¶
Define the ‘.mat’ file loader.
- load(path, image_field='image', meta_field='metadata')[source]¶
A method that load the data and associated metadata.
- Parameters
path : str
the path to the data to be loaded.
image_field : str, default ‘image’
the name of the data field that contains the image array.
image_field : str, default ‘metadata’
the name of the data field that contains the image metadata.
- Returns
image : Image
the loaded image.
- save(image, outpath, image_field='image', meta_field='metadata')[source]¶
A method that save the image and associated metadata.
- Parameters
image : Image
the image to be saved.
outpath : str
the path where the the image will be saved.
image_field : str, default ‘image’
the name of the data field that contains the image array.
image_field : str, default ‘metadata’
the name of the data field that contains the image metadata.
Follow us