pysap.base.loaders.tif#

class TIF[source]#

Bases: pysap.base.loaders.loader_base.LoaderBase

Define the ‘.tif’ file loader.

allowed_extensions = ['.tif']#
load(path, as_gray=False)[source]#

A method that load the data in TIF format.

Parameters
  • path (str) – the path to the data to be loaded.

  • as_gray (bool, default False (display image in RGB by default)) –

Returns

image – the loaded image.

Return type

Image

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

A method that save the image in TIF format.

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

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

  • check_contrast (bool, optional) – Check for low contrast and print warning (default: True).