MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::distance_map_load Namespace Reference

Functions

auto from_tiff (path:&str, settings:Option<&meshlib::DistanceMapLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >
auto from_raw (path:&str, settings:Option<&meshlib::DistanceMapLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >
 Load DistanceMap from binary file Format: 2 integer - DistanceMap.resX & DistanceMap.resY [resX * resY] float - matrix of values.
auto from_mr_distance_map (path:&str, settings:Option<&meshlib::DistanceMapLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >
auto from_any_supported_format (path:&str, settings:Option<&meshlib::DistanceMapLoadSettings >) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >

Function Documentation

◆ from_any_supported_format()

auto meshlib::distance_map_load::from_any_supported_format ( path:& str,
settings:Option<&meshlib::DistanceMapLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >

Generated from function MR::DistanceMapLoad::fromAnySupportedFormat.

Calls MR_DistanceMapLoad_fromAnySupportedFormat().

◆ from_mr_distance_map()

auto meshlib::distance_map_load::from_mr_distance_map ( path:& str,
settings:Option<&meshlib::DistanceMapLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >

Generated from function MR::DistanceMapLoad::fromMrDistanceMap.

Calls MR_DistanceMapLoad_fromMrDistanceMap().

◆ from_raw()

auto meshlib::distance_map_load::from_raw ( path:& str,
settings:Option<&meshlib::DistanceMapLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >

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().

◆ from_tiff()

auto meshlib::distance_map_load::from_tiff ( path:& str,
settings:Option<&meshlib::DistanceMapLoadSettings >  ) -> meshlib::Owned< meshlib::expected_MR_DistanceMap_std_string >

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().