MeshLib C++ Docs
Loading...
Searching...
No Matches
MRRasterLoad.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRExpected.h"
5#include "MRRaster.h"
6
7#include <filesystem>
8
9namespace MR
10{
11
12namespace RasterLoad
13{
14
18
20MRMESH_API Expected<Raster> fromAnySupportedFormat( const std::filesystem::path& path, const RasterLoadSettings& settings = {} );
21
23MRMESH_API Expected<RasterInfo> infoFromAnySupportedFormat( const std::filesystem::path& path );
24
26
27}
28
29}
#define MRMESH_API
Definition MRMeshFwd.h:85
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< RasterInfo > infoFromAnySupportedFormat(const std::filesystem::path &path)
detects the format from file extension and loads everything about the raster except its samples
Expected< Raster > fromAnySupportedFormat(const std::filesystem::path &path, const RasterLoadSettings &settings={})
detects the format from file extension and loads a raster from it
Definition MRTiff.h:22
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
settings for loading rasters from external formats
Definition MRRaster.h:64