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_weighted_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 "weight",
25 "transform",
26 "radial_weight"
27 ),
30);
31
45REXLIB_BEGIN_TEMPLATE_BASE
47 : public trivial_operation<
48 insert_weighted_slices_operation,
49 insert_weighted_slices_operation_traits
50 >
51{
52public:
60 ) noexcept;
61
68
70 gridding_window m_window;
71};
73
74} // namespace em
75} // 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, with a denominator weight per freque...
Definition insert_weighted_slices_operation.hpp:51
insert_weighted_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 >, slot_same_as< 0 > > > weighted_slice_insertion_type_rule
Type rule of insert_weighted_slices_operation.
Definition slice_insertion_rules.hpp:155
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_half_spectrum_core, slice_transform_core, slice_radial_core >, trailing_core, output_batch::accumulated > weighted_slice_insertion_shape_rule
Shape rule of insert_weighted_slices_operation.
Definition slice_insertion_rules.hpp:139
std::pair< array, array > insert_weighted_slices(const_array_ref numerator, const_array_ref denominator, const_array_ref slices, const_array_ref weights, 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, with a denominator weight per freque...
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10