MeshLib C++ Docs
Loading...
Searching...
No Matches
MRTiff.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_TIFF
5#include "exports.h"
6
8#include <MRMesh/MRExpected.h>
9#include <MRMesh/MRMeshFwd.h>
10
11#include <filesystem>
12
13namespace MR
14{
17
18
19namespace ImageLoad
20{
21
23MRIOEXTRAS_API Expected<Image> fromTiff( const std::filesystem::path& path );
24
25}
26
27namespace ImageSave
28{
29
31MRIOEXTRAS_API Expected<void> toTiff( const Image& image, const std::filesystem::path& path );
32
33}
34
35namespace DistanceMapSave
36{
37
39MRIOEXTRAS_API Expected<void> toTiff( const DistanceMap& dmap, const std::filesystem::path& path, const DistanceMapSaveSettings& settings = {} );
40
41}
42
43}
44#endif
Definition MRDistanceMap.h:24
tl::expected< T, E > Expected
Definition MRExpected.h:31
MRIOEXTRAS_API Expected< Image > fromTiff(const std::filesystem::path &path)
loads from .tiff format
MRIOEXTRAS_API Expected< void > toTiff(const DistanceMap &dmap, const std::filesystem::path &path, const DistanceMapSaveSettings &settings={})
saves in .tiff format
MRIOEXTRAS_API Expected< void > toTiff(const Image &image, const std::filesystem::path &path)
saves in .tiff format
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
determines how to save distance maps
Definition MRDistanceMapParams.h:198
Definition MRImage.h:19