◆ fromAnySupportedFormat()
detects the format from file extension and loads a raster from it
◆ fromTiff()
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: