Undefined function 'conv2' for input arguments of type 'double' and attributes 'full 3d complex'.
来源:互联网 发布:qq源码多少行 编辑:程序博客网 时间:2024/05/11 13:04
matlab提示错误:Undefined function 'conv2' for input arguments of type 'double' and attributes 'full 3d complex'.
原因:在matlab中,彩色图像的表示是三维矩阵,即(x,y,color)。但conv2函数只能对2维图像进行卷积操作,不能直接作用于三维矩阵。
三种解决方案:
No.1 使用n维卷积函数 convn()。
No.2 先使用rgb2gray()函数将三维彩色图像转换成灰度图像,然后再使用conv2()进行2维滤波操作。
例:filter_F= conv2(gauss,rgb2gray(img_double));
No.3 对彩色(RGB)图像的每一层分别使用conv2()进行2维卷积操作。
例:filter_F = zeros(size(im_double));
for i=1:3
filter_F(:,:,i)= conv2(gauss, im_double(:,:,i);
end
2 0
- Undefined function 'conv2' for input arguments of type 'double' and attributes 'full 3d complex'.
- Undefined function 'conv2' for input arguments of type 'double' and attributes 'full 3d real'.
- Undefined function 'adb' for input arguments of type 'double'.
- 错误(Undefined function 'produce' for input arguments of type 'double'.)
- 解决Undefined function or method 'vgg_kmiter' for input arguments of type 'double'.
- Undefined function or method ' ' for input arguments of type 'double' ---错误解决办法
- 解决Undefined function or method 'vgg_kmiter' for input arguments of type 'double'.
- Matlab 出现Undefined function '' for input arguments of type 'double'.解决方案
- Undefined function 'im2double' for input arguments of type 'uint8'.
- matlab错误:Function 'conv2' is not defined for values of class 'double' and attributes
- 关于MATLAB函数不可用问题。??? Undefined function or method 'minfo' for input arguments of type 'double'.
- matlab中发生Undefined function 'regessionLoop' for input arguments of type 'char'.
- Undefined function or method 'deploywhich' for input arguments of type 'char'
- Matlab出现On Startup: Error using eval undefined function 'workspacefunc' for input arguments of type
- the Undefined function 'caffe_' for input arguments of type 'char' 解决办法
- matlab 出现Undefined function 'functionname' for input arguments of type 'logical'问题的解决办法
- Matlab出现On Startup: Error using eval undefined function 'workspacefunc' for input arguments of type
- matlab提示Undefined operator '*' for input arguments of type 'cell'.
- 5 Lightweight Alternatives to Apache and IIS Web Servers
- iOS:编译错误Unknown type name ‘***'
- H电-Problem Archive-1879-继续畅通工程
- 素数
- 翼支付门户架构之Spring Security框架介绍
- Undefined function 'conv2' for input arguments of type 'double' and attributes 'full 3d complex'.
- Java IO流学习总结
- java的内存泄露是如何发生的,如何避免和发现?
- 从有限状态机(FSM)到行为树(Behavior Tree)
- Android SAX解析XML
- XML乱码问题和encoding的理解
- 数组建立邻接表的方法
- Java面试题~随机文件读取
- OA项目 分页功能总结一 简单的分页(资料来源于传智播客汤阳光的视频教程)