vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
image_read.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/array/array.hpp>
6#include <vitrio/array/array_ref.hpp>
7#include <vitrio/array/numerical_type.hpp>
8#include <vitrio/export.hpp>
9#include <vitrio/span.hpp>
10
11#include <memory>
12#include <string>
13
14namespace vitrio
15{
16
17class completion;
18class executor;
19class index_table;
20
21class image_loader;
22class image_location;
25class image_scratch;
26
43VITRIO_API
44array read(
45 const std::string &key,
46 image_reader_provider &readers,
47 numerical_type data_type = numerical_type::unknown
48);
49
62VITRIO_API
63array read(
64 const image_location &location,
65 image_reader_provider &readers,
66 numerical_type data_type = numerical_type::unknown
67);
68
85VITRIO_API
86void read(
87 array_ref destination,
88 const image_location &location,
90);
91
120VITRIO_API
121std::shared_ptr<completion> read_batch_async(
122 const image_loader &loader,
123 array destination,
125);
126
160VITRIO_API
161std::shared_ptr<completion> read_patches_async(
162 const image_loader &loader,
163 array destination,
164 const image_location &location,
165 const index_table &centres
166);
167
196VITRIO_API
197std::shared_ptr<completion> prefetch_scratch_async(
198 image_scratch &scratch,
199 std::shared_ptr<image_reader_provider> files,
200 vitrio::executor &executor,
201 const image_location_grouping &locations
202);
203
204} // namespace vitrio
A reference to a multidimensional array that does not keep it alive.
Definition array_ref.hpp:32
A multidimensional array of numbers in host memory.
Definition array.hpp:37
A query-only view of whether one or more units of work have finished.
Definition completion.hpp:18
Where a task is handed off to run, now or later.
Definition executor.hpp:26
Loads the regions of a transaction plan into one array.
Definition image_loader.hpp:31
Groups a list of image locations by file.
Definition image_location_grouping.hpp:31
Address of an image file, or of one image or volume of a stack.
Definition image_location.hpp:29
Interface to serve image_reader given a key.
Definition image_reader_provider.hpp:26
Copies of image files, kept where they are faster to reach than the files themselves.
Definition image_scratch.hpp:27
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