rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
fourier_normalization.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/platform/dynamic_shared_object.h>
6
7#include <cstddef>
8#include <ostream>
9
10namespace rexlib
11{
12namespace ops
13{
14
34{
42
50 ortho,
51
59};
60
70{
72 forward,
73
76};
77
79const char* to_string(fourier_normalization normalization) noexcept;
80
82std::ostream& operator<<(
83 std::ostream &os,
85);
86
88const char* to_string(fourier_direction direction) noexcept;
89
91std::ostream& operator<<(std::ostream &os, fourier_direction direction);
92
116 std::size_t sample_count
117) noexcept;
118
119} // namespace ops
120} // namespace rexlib
Container for multidimensional numeric data.
Definition array.hpp:31
double get_fourier_scale(fourier_normalization normalization, fourier_direction direction, std::size_t sample_count) noexcept
Get the factor a transform multiplies its result by.
fourier_direction
Which way round a transform goes.
Definition fourier_normalization.hpp:70
@ inverse
From the frequency domain back to the signal domain.
fourier_normalization
Which of a transform pair carries the scaling.
Definition fourier_normalization.hpp:34
@ backward
The inverse transform divides by the number of samples.
@ forward
The forward transform divides by the number of samples.
@ ortho
Both transforms divide by the square root of the count.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10