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

Static Public Member Functions

DistanceMap fromAnySupportedFormat (os.PathLike|str|bytes path, ConstDistanceMapLoadSettings settings=...)
DistanceMap fromMrDistanceMap (os.PathLike|str|bytes path, ConstDistanceMapLoadSettings settings=...)
DistanceMap fromRaw (os.PathLike|str|bytes path, ConstDistanceMapLoadSettings settings=...)
DistanceMap fromTiff (os.PathLike|str|bytes path, ConstDistanceMapLoadSettings settings=...)

Detailed Description

This is a namespace.

Member Function Documentation

◆ fromAnySupportedFormat()

DistanceMap mrmeshpy.DistanceMapLoad.fromAnySupportedFormat ( os.PathLike | str | bytes path,
ConstDistanceMapLoadSettings settings = ... )
static

◆ fromMrDistanceMap()

DistanceMap mrmeshpy.DistanceMapLoad.fromMrDistanceMap ( os.PathLike | str | bytes path,
ConstDistanceMapLoadSettings settings = ... )
static

◆ fromRaw()

DistanceMap mrmeshpy.DistanceMapLoad.fromRaw ( os.PathLike | str | bytes path,
ConstDistanceMapLoadSettings settings = ... )
static
@brief Load DistanceMap from binary file
Format:
2 integer - DistanceMap.resX & DistanceMap.resY
[resX * resY] float - matrix of values

◆ fromTiff()

DistanceMap mrmeshpy.DistanceMapLoad.fromTiff ( os.PathLike | str | bytes path,
ConstDistanceMapLoadSettings settings = ... )
static
loads the first image of a .tiff file: one channel is taken as is, three or more channels give the luma of the first three,
see convertRasterToFloats; the values of one channel equal to the value meaning no data (GDAL_NODATA) are invalid;
settings.distanceMapToWorld gets the GeoTIFF transformation, or the identity if the file has none

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