rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
preprocessing.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/ndarray/array.hpp>
6#include <rexlib/core/ndarray/const_array_ref.hpp>
7#include <rexlib/core/platform/dynamic_shared_object.h>
8#include <rexlib/core/span.hpp>
9
10#include <cstddef>
11
12namespace rexlib
13{
14
15class execution_context;
16
17namespace em
18{
19
41REXLIB_API
43 const_array_ref value,
46 double radius,
47 double lower_bound,
48 double upper_bound,
50 array *out = nullptr
51);
52
77 const_array_ref value,
79 double radius,
80 double lower_bound,
81 double upper_bound,
83 array *out = nullptr
84);
85
110 const_array_ref value,
112 double radius,
113 double lower_bound,
114 double upper_bound,
116 array *out = nullptr
117);
118
119} // namespace em
120} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Non-owning read-only reference to an array.
Definition const_array_ref.hpp:36
Pairs the hardware resources and the dispatch strategy used to run operations.
Definition execution_context.hpp:43
array standardize_background(const_array_ref value, const_array_ref key, span< const std::ptrdiff_t > axes, double radius, double lower_bound, double upper_bound, const execution_context &context, array *out=nullptr)
Standardize images against the statistics of their background.
array standardize_background_2d(const_array_ref value, const_array_ref key, double radius, double lower_bound, double upper_bound, const execution_context &context, array *out=nullptr)
Standardize images held in the last two axes against the statistics of their background.
array standardize_background_3d(const_array_ref value, const_array_ref key, double radius, double lower_bound, double upper_bound, const execution_context &context, array *out=nullptr)
Standardize volumes held in the last three axes against the statistics of their background.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10