vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_write.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/array/const_array.hpp>
6#include <vitrio/array/const_array_ref.hpp>
7#include <vitrio/array/numerical_type.hpp>
8#include <vitrio/export.hpp>
9#include <vitrio/image_file_write_format_selector.hpp>
10#include <vitrio/image_metadata.hpp>
11#include <vitrio/span.hpp>
12
13#include <cstddef>
14#include <memory>
15
16namespace vitrio
17{
18
19class completion;
21
23class image_location;
24class image_saver;
25class index_table;
26
46VITRIO_API
47void write_single(
49 const std::string &path,
51 const file_transfer_pool &transfers,
52 numerical_type data_type = numerical_type::unknown,
53 const image_metadata &metadata = image_metadata()
54);
55
73VITRIO_API
74void write_stack(
76 const std::string &path,
78 const file_transfer_pool &transfers,
79 numerical_type data_type = numerical_type::unknown,
80 const image_metadata &metadata = image_metadata()
81);
82
101VITRIO_API
102void write(
103 const_array_ref arr,
104 const std::string &path,
106 const file_transfer_pool &transfers,
107 const image_descriptor &descriptor,
108 const image_metadata &metadata = image_metadata()
109);
110
142VITRIO_API
143std::shared_ptr<completion> write_batch_async(
144 const image_saver &saver,
145 const_array source,
147);
148
188VITRIO_API
189std::shared_ptr<completion> write_patches_async(
190 const image_saver &saver,
191 const_array source,
192 const image_location &location,
193 const index_table &centres
194);
195
196} // namespace vitrio
A query-only view of whether one or more units of work have finished.
Definition completion.hpp:18
A read-only reference to a multidimensional array that does not keep it alive.
Definition const_array_ref.hpp:29
A multidimensional array of numbers that cannot be written through.
Definition const_array.hpp:29
Threads that carry out the reads and writes of files, each many at once, and hand the computations th...
Definition file_transfer_pool.hpp:30
The shape and data type of the values an image file holds.
Definition image_descriptor.hpp:28
Holds the image formats that can be written, selects the most suitable of them for a file,...
Definition image_file_write_format_selector.hpp:35
Address of an image file, or of one image or volume of a stack.
Definition image_location.hpp:29
What an image file states beyond its shape and data type, such as the distance between its samples.
Definition image_metadata.hpp:35
Saves the regions of a transaction plan out of one array.
Definition image_saver.hpp:31
A sequence of indices of one and the same rank.
Definition index_table.hpp:29
A view of a contiguous sequence of elements.
Definition span.hpp:29