Undefined function or method 'pdfbdec' for input arguments of type 'double'.contourlet变换经典代码中,总是对于这个函数报错y = pdfbdec(nim,pfilt,dfilt,nlevs);help文档里也米有相关定义说明,请问如何排除此问题.我是
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/30 19:28:28
![Undefined function or method 'pdfbdec' for input arguments of type 'double'.contourlet变换经典代码中,总是对于这个函数报错y = pdfbdec(nim,pfilt,dfilt,nlevs);help文档里也米有相关定义说明,请问如何排除此问题.我是](/uploads/image/z/6946722-18-2.jpg?t=Undefined+function+or+method+%27pdfbdec%27+for+input+arguments+of+type+%27double%27.contourlet%E5%8F%98%E6%8D%A2%E7%BB%8F%E5%85%B8%E4%BB%A3%E7%A0%81%E4%B8%AD%2C%E6%80%BB%E6%98%AF%E5%AF%B9%E4%BA%8E%E8%BF%99%E4%B8%AA%E5%87%BD%E6%95%B0%E6%8A%A5%E9%94%99y+%3D+pdfbdec%28nim%2Cpfilt%2Cdfilt%2Cnlevs%29%3Bhelp%E6%96%87%E6%A1%A3%E9%87%8C%E4%B9%9F%E7%B1%B3%E6%9C%89%E7%9B%B8%E5%85%B3%E5%AE%9A%E4%B9%89%E8%AF%B4%E6%98%8E%2C%E8%AF%B7%E9%97%AE%E5%A6%82%E4%BD%95%E6%8E%92%E9%99%A4%E6%AD%A4%E9%97%AE%E9%A2%98.%E6%88%91%E6%98%AF)
Undefined function or method 'pdfbdec' for input arguments of type 'double'.contourlet变换经典代码中,总是对于这个函数报错y = pdfbdec(nim,pfilt,dfilt,nlevs);help文档里也米有相关定义说明,请问如何排除此问题.我是
Undefined function or method 'pdfbdec' for input arguments of type 'double'.
contourlet变换经典代码中,总是对于这个函数报错y = pdfbdec(nim,pfilt,dfilt,nlevs);help文档里也米有相关定义说明,请问如何排除此问题.我是虾米,
pdfbdec()函数没有定义,无法调用?程序如下:
clear all;
clc;
%设定参数
pfilt = '9-7'; % choose LP decomposition filter
dfilt = 'pkva'; % choose DFB decomposition filter
nlevs = [0,0,4,4,5];
th = 3; % lead to 3*sigma threshold denoising
rho=3;
im = imread('lena512.bmp');
im = double(im)/256 ;
sig = std(im(:));
sigma = sig / rho;
% Contourlet 变换
y = pdfbdec(im,pfilt,dfilt,nlevs);
[c,s] = pdfb2vec(y);
nvar = pdfb_nest(size(im,1),size(im,2),pfilt,dfilt,nlevs); %nstd = pdfb_nest(nrows,ncols,pfilt,dfilt,nlevs)
cth = th * sigma * sqrt(nvar);
% 系数处理
c = c .* (abs(c) > cth);
% 重构
y = vec2pdfb(c,s);
cim = pdfbrec(y,pfilt,dfilt);
%显示图像
range = [0,1];
colormap(gray);
subplot(1,1,1),imagesc(cim(41:168,181:308),range); axis image off
colormap(gray);
set(gca,'FontSize',8);
title('Contourlets decomposition','FontSize',10)
Undefined function or method 'pdfbdec' for input arguments of type 'double'.contourlet变换经典代码中,总是对于这个函数报错y = pdfbdec(nim,pfilt,dfilt,nlevs);help文档里也米有相关定义说明,请问如何排除此问题.我是
你的contourlet工具包安装不正确 导致你调用其中函数的时候,matlab总出现此提示
最好是将此工具把拷到某一路径下,然后用path加载此路径