MeshLib Documentation
Loading...
Searching...
No Matches
MRDistanceMapLoad.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3#include "MRIOFilters.h"
6#include "MRExpected.h"
7#include <filesystem>
8
9namespace MR
10{
11
12namespace DistanceMapLoad
13{
17
18MRMESH_API extern const IOFilters Filters;
19
26MRMESH_API Expected<DistanceMap> fromRaw( const std::filesystem::path& path, ProgressCallback progressCb = {} );
27MRMESH_API Expected<DistanceMap> fromMrDistanceMap( const std::filesystem::path& path, DistanceMapToWorld& params, ProgressCallback progressCb = {} );
28#if !defined( __EMSCRIPTEN__ ) && !defined( MRMESH_NO_TIFF )
29MRMESH_API Expected<DistanceMap> fromTiff( const std::filesystem::path& path, DistanceMapToWorld& params, ProgressCallback progressCb = {} );
30#endif
31MRMESH_API Expected<DistanceMap> fromAnySupportedFormat( const std::filesystem::path& path, DistanceMapToWorld* params, ProgressCallback progressCb = {} );
32
34
35} // namespace DistanceMapLoad
36
37} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRMESH_API Expected< DistanceMap > fromAnySupportedFormat(const std::filesystem::path &path, DistanceMapToWorld *params, ProgressCallback progressCb={})
MRMESH_API Expected< DistanceMap > fromTiff(const std::filesystem::path &path, DistanceMapToWorld &params, ProgressCallback progressCb={})
MRMESH_API const IOFilters Filters
MRMESH_API Expected< DistanceMap > fromRaw(const std::filesystem::path &path, ProgressCallback progressCb={})
Load DistanceMap from binary file Format: 2 integer - DistanceMap.resX & DistanceMap....
MRMESH_API Expected< DistanceMap > fromMrDistanceMap(const std::filesystem::path &path, DistanceMapToWorld &params, ProgressCallback progressCb={})
std::vector< IOFilter > IOFilters
Definition MRIOFilters.h:32
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
This structure store data to transform distance map to world coordinates.
Definition MRDistanceMapParams.h:136