fdct_wrapping_window.m
来自「Fast Discrete Curvelet Transform有正反变换,各个」· M 代码 · 共 27 行
M
27 行
function [wl,wr] = fdct_wrapping_window(x)% fdct_wrapping_window.m - Creates the two halves of a C^inf compactly supported window%% Inputs% x vector or matrix of abscissae, the relevant ones from 0 to 1%% Outputs% wl,wr vector or matrix containing samples of the left, resp. right% half of the window%% Used at least in fdct_wrapping.m and ifdct_wrapping.m%% By Laurent Demanet, 2004wr = zeros(size(x));wl = zeros(size(x));x(abs(x) < 2^-52) = 0;wr((x > 0) & (x < 1)) = exp(1-1./(1-exp(1-1./x((x > 0) & (x < 1)))));wr(x <= 0) = 1;wl((x > 0) & (x < 1)) = exp(1-1./(1-exp(1-1./(1-x((x > 0) & (x < 1))))));wl(x >= 1) = 1;normalization = sqrt(wl.^2 + wr.^2);wr = wr ./ normalization;wl = wl ./ normalization;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?