rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
insert_slices_operation.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/operation/operation_declaration_macros.hpp>
6#include <rexlib/core/platform/dynamic_shared_object.h>
7#include <rexlib/em/em_component.hpp>
8#include <rexlib/em/ops/parameters/gridding_window.hpp>
9#include <rexlib/em/ops/reconstruction/slice_insertion_rules.hpp>
10
11namespace rexlib
12{
13namespace em
14{
15
16REXLIB_DECLARE_OPERATION_TRAITS(
18 em_component,
19 REXLIB_OPERANDS("numerator", "denominator"),
20 REXLIB_OPERANDS(
21 "numerator",
22 "denominator",
23 "slice",
24 "transform",
25 "radial_weight"
26 ),
29);
30
111REXLIB_BEGIN_TEMPLATE_BASE
113 : public trivial_operation<
114 insert_slices_operation,
115 insert_slices_operation_traits
116 >
117{
118public:
125
132
133private:
134 gridding_window m_window;
135};
137
138} // namespace em
139} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
Separable window that spreads a sample over the voxels of a grid.
Definition gridding_window.hpp:24
Insert the spectra of projections into the spectrum of a volume.
Definition insert_slices_operation.hpp:117
insert_slices_operation(const gridding_window &window) noexcept
Construct an insertion with a gridding window.
const gridding_window & get_window() const noexcept
Get the gridding window.
CRTP base for operations that are trivially declared.
Definition trivial_operation.hpp:34
operand_type_rule< type_list< pivot_from_input< 1, slice_insertion_type_domain > >, type_list< slot_complex_of< 0 >, slot_same_as< 0 > >, type_list< slot_complex_of< 0 >, slot_same_as< 0 >, slot_complex_of< 0 >, slot_same_as< 0 >, slot_same_as< 0 > > > slice_insertion_type_rule
Type rule of insert_slices_operation.
Definition slice_insertion_rules.hpp:121
operand_shape_rule< slice_insertion_pivots, type_list< volume_half_spectrum_core, volume_half_spectrum_core >, type_list< volume_half_spectrum_core, volume_half_spectrum_core, slice_half_spectrum_core, slice_transform_core, slice_radial_core >, trailing_core, output_batch::accumulated > slice_insertion_shape_rule
Shape rule of insert_slices_operation.
Definition slice_insertion_rules.hpp:106
std::pair< array, array > insert_slices(const_array_ref numerator, const_array_ref denominator, const_array_ref slices, const_array_ref transforms, const_array_ref radial_weights, const gridding_window &window, const execution_context &context, array *numerator_out=nullptr, array *denominator_out=nullptr)
Insert the spectra of projections into the spectrum of a volume.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10