⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pdfb_nest.m

📁 contourlet算法作为二阶小波算法的延续
💻 M
字号:
function nstd = pdfb_nest(nrows, ncols, pfilt, dfilt, nlevs)
% PDFB_NEST  Estimate the noise standard deviation in the PDFB domain
%
%   nstd = pdfb_nest(nrows, ncols, pfilt, dfilt, nlevs)
%
% Used for PDFB denoising.  For an additive Gaussian white noise of zero
% mean and sigma standard deviation, the noise standard deviation in the
% PDFB domain (in vector form) is sigma * nstd.

% Number of interations
niter = 10;

% First run to get the size of the PDFB
x = randn(nrows, ncols);
y = pdfbdec(x, pfilt, dfilt, nlevs);
[c, s] = pdfb2vec(y);

nstd = zeros(1, length(c));
nlp = s(1, 3) * s(1, 4);	% number of lowpass coefficients
nstd(nlp+1:end) = nstd(nlp+1:end) + c(nlp+1:end).^2;

for k = 2:niter
    x = randn(nrows, ncols);
    y = pdfbdec(x, pfilt, dfilt, nlevs);
    [c, s] = pdfb2vec(y);
    
    nstd(nlp+1:end) = nstd(nlp+1:end) + c(nlp+1:end).^2;
end

nstd = sqrt(nstd ./ (niter - 1));

⌨️ 快捷键说明

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