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{
15
16namespace ImageLoad
17{
18
20MRIOEXTRAS_API Expected<Image> fromTiff( const std::filesystem::path& path );
21
22} // namespace ImageLoad
23
24namespace ImageSave
25{
26
28MRIOEXTRAS_API Expected<void> toTiff( const Image& image, const std::filesystem::path& path );
29
30} // namespace ImageSave
31
32namespace DistanceMapSave
33{
34
36MRIOEXTRAS_API Expected<void> toTiff( const DistanceMap& dmap, const std::filesystem::path& path, const DistanceMapSaveSettings& settings = {} );
37
38} // namespace ImageSave
39
40} // namespace MR
41#endif
Definition MRDistanceMap.h:24
MRIOEXTRAS_API Expected< void > toTiff(const DistanceMap &dmap, const std::filesystem::path &path, const DistanceMapSaveSettings &settings={})
saves in .tiff format
MRIOEXTRAS_API Expected< Image > fromTiff(const std::filesystem::path &path)
loads from .tiff format
MRIOEXTRAS_API Expected< void > toTiff(const Image &image, const std::filesystem::path &path)
saves in .tiff format
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:25
determines how to save distance maps
Definition MRDistanceMapParams.h:198
Definition MRImage.h:15