nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
denoise.hpp
Go to the documentation of this file.
1
3// toolboxes/wavelet/include/nk/wavelet/denoise/denoise.hpp
4//
5// Wavelet-domain denoising: thresholding rules (wthresh), noise σ
6// estimation (wnoisest), and the composite VisuShrink-style
7// denoiser (wdenoise).
8
9#pragma once
10
11#include <memory_resource>
12#include <nk/value/value.hpp>
13#include <string>
14
15namespace nk::wavelet {
16
19
20
40Value wthresh(const Value &X, const std::string &sorh, double T,
41 std::pmr::memory_resource *mr = nullptr);
42
57Value wnoisest(const Value &C, const Value &L, const Value &S,
58 std::pmr::memory_resource *mr = nullptr);
59
85Value wdenoise(const Value &x, int level, const std::string &wname,
86 std::pmr::memory_resource *mr = nullptr);
87
105Value wentropy(const Value &X, const std::string &type, double param = 0.0,
106 std::pmr::memory_resource *mr = nullptr);
107
115
134DdencmpResult ddencmp(const std::string &opt, const std::string &type,
135 const Value &x, std::pmr::memory_resource *mr = nullptr);
136
137
139} // namespace nk::wavelet
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value wnoisest(const Value &C, const Value &L, const Value &S, std::pmr::memory_resource *mr=nullptr)
Per-level noise σ estimate (σ = wnoisest(C, L, S)).
Value wdenoise(const Value &x, int level, const std::string &wname, std::pmr::memory_resource *mr=nullptr)
VisuShrink-style soft-threshold denoising (y = wdenoise(x, level, wname)).
DdencmpResult ddencmp(const std::string &opt, const std::string &type, const Value &x, std::pmr::memory_resource *mr=nullptr)
Default threshold / settings for wavelet denoising or compression.
Value wentropy(const Value &X, const std::string &type, double param=0.0, std::pmr::memory_resource *mr=nullptr)
Entropy of a coefficient vector (E = wentropy(X, T[, P])).
Value wthresh(const Value &X, const std::string &sorh, double T, std::pmr::memory_resource *mr=nullptr)
Element-wise wavelet coefficient thresholding (Y = wthresh(X, sorh, T)).
Default denoising / compression parameters ([thr, sorh, keepapp] = ddencmp(opt, type,...
Definition denoise.hpp:110
Value keepapp
Keep approximation flag (always 1).
Definition denoise.hpp:113
Value sorh
Soft ('s') or hard ('h') thresholding.
Definition denoise.hpp:112