nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
multilevel2.hpp
Go to the documentation of this file.
1
3// toolboxes/wavelet/include/nk/wavelet/dwt/multilevel2.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
25 Value c;
26 Value s;
27};
28
38Wavedec2Result wavedec2(const Value &X, int n, const std::string &wname,
39 std::pmr::memory_resource *mr = nullptr);
40
45Value waverec2(const Value &C, const Value &S, const std::string &wname,
46 std::pmr::memory_resource *mr = nullptr);
47
55Value appcoef2(const Value &C, const Value &S, const std::string &wname,
56 int level = -1, std::pmr::memory_resource *mr = nullptr);
57
67Value detcoef2(const std::string &type, const Value &C, const Value &S,
68 int level, std::pmr::memory_resource *mr = nullptr);
69
70
72} // namespace nk::wavelet
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value detcoef2(const std::string &type, const Value &C, const Value &S, int level, std::pmr::memory_resource *mr=nullptr)
Extract a 2-D detail sub-band (detcoef2(type, C, S, level)).
Value appcoef2(const Value &C, const Value &S, const std::string &wname, int level=-1, std::pmr::memory_resource *mr=nullptr)
Extract / reconstruct the approximation coefficients at level (appcoef2(C, S, wname,...
Value waverec2(const Value &C, const Value &S, const std::string &wname, std::pmr::memory_resource *mr=nullptr)
Full 2-D multilevel reconstruction (waverec2(C, S, wname)), i.e.
Wavedec2Result wavedec2(const Value &X, int n, const std::string &wname, std::pmr::memory_resource *mr=nullptr)
2-D multilevel wavelet decomposition.
Result of wavedec2 ([C, S] = wavedec2(X, N, wname)).