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
7#include <MRMesh/MRExpected.h>
8#include <MRMesh/MRImage.h>
9
10#include <filesystem>
11
12namespace MR
13{
14
15namespace ImageLoad
16{
17
19MRIOEXTRAS_API Expected<Image> fromTiff( const std::filesystem::path& path );
20
21} // namespace ImageLoad
22
23namespace ImageSave
24{
25
27MRIOEXTRAS_API Expected<void> toTiff( const Image& image, const std::filesystem::path& path );
28
29} // namespace ImageSave
30
31} // namespace MR
32#endif
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
tl::expected< T, E > Expected
Definition MRExpected.h:59
Definition MRImage.h:15