MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.distancemapload.Functions Class Reference

Static Public Member Functions

static meshlib.DistanceMap fromRaw (java.lang.String path, meshlib.DistanceMapLoadSettings settings)
 Load DistanceMap from binary file Format: 2 integer - DistanceMap.resX & DistanceMap.resY [resX * resY] float - matrix of values.
static meshlib.DistanceMap fromMrDistanceMap (java.lang.String path, meshlib.DistanceMapLoadSettings settings)
static meshlib.DistanceMap fromAnySupportedFormat (java.lang.String path, meshlib.DistanceMapLoadSettings settings)
static meshlib.DistanceMap fromTiff (java.lang.String path, meshlib.DistanceMapLoadSettings settings)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ fromAnySupportedFormat()

meshlib.DistanceMap meshlib.distancemapload.Functions.fromAnySupportedFormat ( java.lang.String path,
meshlib.DistanceMapLoadSettings settings )
static

Generated from function MR::DistanceMapLoad::fromAnySupportedFormat.

Calls MR_DistanceMapLoad_fromAnySupportedFormat(). The C++ function returns expected<MR::DistanceMap, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromMrDistanceMap()

meshlib.DistanceMap meshlib.distancemapload.Functions.fromMrDistanceMap ( java.lang.String path,
meshlib.DistanceMapLoadSettings settings )
static

Generated from function MR::DistanceMapLoad::fromMrDistanceMap.

Calls MR_DistanceMapLoad_fromMrDistanceMap(). The C++ function returns expected<MR::DistanceMap, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromRaw()

meshlib.DistanceMap meshlib.distancemapload.Functions.fromRaw ( java.lang.String path,
meshlib.DistanceMapLoadSettings settings )
static

Load DistanceMap from binary file Format: 2 integer - DistanceMap.resX & DistanceMap.resY [resX * resY] float - matrix of values.

Generated from function MR::DistanceMapLoad::fromRaw.

Calls MR_DistanceMapLoad_fromRaw(). The C++ function returns expected<MR::DistanceMap, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromTiff()

meshlib.DistanceMap meshlib.distancemapload.Functions.fromTiff ( java.lang.String path,
meshlib.DistanceMapLoadSettings 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 Generated from function MR::DistanceMapLoad::fromTiff.

Calls MR_DistanceMapLoad_fromTiff(). The C++ function returns expected<MR::DistanceMap, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


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