modulateflip.m

来自「matlab的steel金字塔小波分解源代码」· M 代码 · 共 20 行

M
20
字号
% [HFILT] = modulateFlipShift(LFILT)%% QMF/Wavelet highpass filter construction: modulate by (-1)^n,% reverse order (and shift by one, which is handled by the convolution% routines).  This is an extension of the original definition of QMF's% (e.g., see Simoncelli90).% Eero Simoncelli, 7/96.function [hfilt] = modulateFlipShift(lfilt)lfilt = lfilt(:);sz = size(lfilt,1);sz2 = ceil(sz/2);ind = [sz:-1:1]';hfilt = lfilt(ind) .* (-1).^(ind-sz2);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?