superdsm.io
- superdsm.io.imread(filepath, force_filetype=None, **kwargs)
Loads an image from file.
Supported file extensions are PNG, TIF, and TIFF.
- Parameters:
force_filetype – Pretend that the file has a specific extension.
- superdsm.io.imsave(filepath, img, shape=None, antialias=False)
Writes an image to a file.
- Parameters:
filepath – The path of the file to be written.
img – A
numpy.ndarrayobject corresponding to the image data.shape – Resolution of the image to be written. Useful for up- and downsampling the image data.
antialias – Whether interpolation and/or anti aliasing should be used for resampling (only used if
shapeis notNone).