NDDTCWT
Matlab code for the implementation of the Non Decimated Dual Tree Complex Wavelet Transform
Install / Use
/learn @csprh/NDDTCWTREADME
Useage: w = NDxWav2DMEX(x, J, Faf, af, nondecimate); y = NDixWav2DMEX(w, J, Fsf, sf, nondecimate);
x,y - 2D arrays J - number of decomposition Faf{i}: tree i first stage analysis filters af{i}: tree i filters for remaining analysis stages Fsf{i}: tree i first stage synthesis filters sf{i}: tree i filters for remaining synthesis stages Nondecimated: 0 (default) for original decimated version, 1 for completely decimated version, 2 for decimation of just first level. w – wavelet coefficients w{a}{b}{c}{d} - wavelet coefficients a = 1:J (scales) b = 1 (real part); b = 2 (imag part) c = 1,2; d = 1,2,3 (orientations) w{J+1}{a}{b} - lowpass coefficients a = 1,2; b = 1,2
Example of Usage:
% Original Decimated Version x = rand(256,256); J = 4; [Faf, Fsf] = AntonB; [af, sf] = dualfilt1; w = NDxWav2DMEX(x, J, Faf, af,0); y = NDixWav2DMEX(w, J, Fsf, sf,0); err = x - y; max(max(abs(err)))
% Decimated Version 1 (no decimation) x = rand(256,256); J = 4; [Faf, Fsf] = NDAntonB2; %(Must use ND filters for both) [af, sf] = NDdualfilt1; w = NDxWav2DMEX(x, J, Faf, af, 1); y = NDixWav2DMEX(w, J, Fsf, sf, 1); err = x - y; max(max(abs(err)))
%Decimated Version 2 (decimation on only first level) x = rand(256,256); J = 4; [Faf, Fsf] = AntonB; [af, sf] = NDdualfilt1; %(Must use ND filters for just these) w = NDxWav2DMEX(x, J, Faf, af, 2); y = NDixWav2DMEX(w, J, Fsf, sf, 2); err = x - y; max(max(abs(err)))
% SIZE LIMITS % (s/J^2) must be bigger than 5 (where s is both height and width) % Height and width must be divisible by 2^J for fully decimated version % Height and width must be divisible by 2 for nondecimated version 2 </pre>
</p>Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
