superdsm.io
- superdsm.io.imread(filepath, **kwargs)
Loads an image from file.
Supported file extensions are PNG, TIF, and TIFF.
- superdsm.io.imwrite(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.ndarray
object 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
shape
is notNone
).