nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
dwt2.hpp
Go to the documentation of this file.
1
3// toolboxes/wavelet/include/nk/wavelet/dwt/dwt2.hpp
4
5#pragma once
6
7#include <memory_resource>
8#include <nk/value/value.hpp>
9#include <string>
10
11namespace nk::wavelet {
12
15
16
24struct Dwt2Result {
25 Value cA;
26 Value cH;
27 Value cV;
28 Value cD;
29};
30
49Dwt2Result dwt2(const Value &X, const std::string &wname,
50 std::pmr::memory_resource *mr = nullptr);
51
70Value idwt2(const Value &cA, const Value &cH,
71 const Value &cV, const Value &cD,
72 const std::string &wname,
73 long long outRows /* = -1 */, long long outCols /* = -1 */,
74 std::pmr::memory_resource *mr = nullptr);
75
76
78} // namespace nk::wavelet
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Dwt2Result dwt2(const Value &X, const std::string &wname, std::pmr::memory_resource *mr=nullptr)
2-D separable single-level wavelet transform.
Value idwt2(const Value &cA, const Value &cH, const Value &cV, const Value &cD, const std::string &wname, long long outRows, long long outCols, std::pmr::memory_resource *mr=nullptr)
2-D inverse single-level wavelet transform.
Result of dwt2 ([cA, cH, cV, cD] = dwt2(X, wname)).
Definition dwt2.hpp:24