MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.RasterLoad Class Reference

Classes

class  ConstTiffLoadSettings
class  TiffLoadSettings

Static Public Member Functions

Raster fromAnySupportedFormat (os.PathLike|str|bytes path, ConstRasterLoadSettings settings=...)
Raster fromTiff (os.PathLike|str|bytes path, ConstRasterLoadSettings settings=..., RasterLoad.ConstTiffLoadSettings tiffSettings=...)
RasterInfo infoFromAnySupportedFormat (os.PathLike|str|bytes path)
RasterInfo infoFromTiff (os.PathLike|str|bytes path)

Detailed Description

This is a namespace.

Member Function Documentation

◆ fromAnySupportedFormat()

Raster mrmeshpy.RasterLoad.fromAnySupportedFormat ( os.PathLike | str | bytes path,
ConstRasterLoadSettings settings = ... )
static
detects the format from file extension and loads a raster from it

◆ fromTiff()

Raster mrmeshpy.RasterLoad.fromTiff ( os.PathLike | str | bytes path,
ConstRasterLoadSettings settings = ...,
RasterLoad.ConstTiffLoadSettings tiffSettings = ... )
static
loads the first image of a .tiff file as a raster with one layer:
* gray, palette and RGB images keep the stored samples of any type (gray values, color indices or color components) as channels;
* libtiff decodes the other formats (gray with alpha, YCbCr, CMYK, less than 8 bits per sample, etc.) to four UInt8 channels
  of RGBA colors, which are not multiplied by alpha unless the file stores them so (associated alpha);
* the formats that libtiff cannot decode are read as stored too if each pixel has one sample or three or more interleaved samples
  of 8 to 64 bits, otherwise loading fails;
* the files compressed by the methods that libtiff does not support fail to load;
* the rows keep the stored order whatever the Orientation tag says, also in the decoded formats

◆ infoFromAnySupportedFormat()

RasterInfo mrmeshpy.RasterLoad.infoFromAnySupportedFormat ( os.PathLike | str | bytes path)
static
detects the format from file extension and loads everything about the raster except its samples

◆ infoFromTiff()

RasterInfo mrmeshpy.RasterLoad.infoFromTiff ( os.PathLike | str | bytes path)
static
loads everything about the raster except its values from .tiff format

The documentation for this class was generated from the following file: