imfilter 可进行多维图像(RGB等)进行空间滤波,且可选参数较多

filter2 只能对二维图像(灰度图)进行空间滤波

两个函数结果类型不一样,只需要在I1=filter2(h,I)后面加上I1=uint8(I1)进行类型转换,结果就是一样的。

imfilter N-D filtering of multidimensional images.
    B = imfilter(A,H) filters the multidimensional array A with the
    multidimensional filter H.  A can be logical or it can be a 
    nonsparse numeric array of any class and dimension.  The result, 
  Each element of the output, B, is computed using double-precision
    floating point.  If A is an integer or logical array, then output 
    elements that exceed the range of the given type are truncated, 
    and fractional values are rounded.    B, has the same size and class as A.

filter2 Two-dimensional digital filter.
    Y = filter2(B,X) filters the data in X with the 2-D FIR
    filter in the matrix B.  The result, Y, is computed 
    using 2-D correlation and is the same size as X.

Y = filter2(B,X,SHAPE) returns Y computed via 2-D
    correlation with size specified by SHAPE:

matlab filter2和imfilter有什么区别相关推荐

  1. matlab 卷积算子,matlab  矩阵卷积imfilter  conv2  filter 区别探究

    imfilter实现的是线性空间滤波: conv2是计算两个矩阵的二维卷积 1.MATLAB中提供了卷积运算的函数命令conv2,其语法格式为: C = conv2(A,B) C = conv2(A, ...

  2. 【Matlab】conv、filter、conv2、filter2和imfilter卷积函数总结

    [Matlab]conv.filter.conv2.filter2和imfilter函数总结 1. conv函数 作用: 1.计算一维向量卷积 u = [1 1 1]; v = [1 1 0 0 0 ...

  3. matlab ezplot fplot,【转】Matlab plot fplot ezplot用法与区别

    [转]Matlab plot fplot ezplot用法与区别 (2012-04-19 20:26:00) 标签: matlab fplot ezplot 数学函数 曲线 杂谈 函数plot 是绘制 ...

  4. matlab括号区别,matlab中各种括号(),[],与{}的区别与认识

    matlab中各种括号(),[],与{}的区别与认识 发布时间:2018-06-04 10:37, 浏览次数:469 , 标签: matlab 原文 在matlab中,常常会遇到(),[],和{},这 ...

  5. Matlab中mesh和surf的区别

    Matlab中mesh和surf的区别 Matlab中surf()和mesh()的区别: [X,Y] = meshgrid(-2:.2:2, -4:.4:4); Z = X .* exp(-X.^2 ...

  6. Matlab filter2的用法

    Matlab filter2的用法 Y=filter2(h,x,'shape') h为滤波器,x为要滤波的数据,将h放在x上移动进行模板滤波. shape可取 full,same,valid (不写默 ...

  7. 使用OpenCV中的filter2D函数精确实现matlab中的imfilter函数(已测)

    转载请注明出处:http://blog.csdn.net/hust_sheng/article/details/79313503 背景 最近复现别人算法的时候,遇到了matlab中的imfilter转 ...

  8. matlab 中conv2、filter2、imfilter的区别

    -------------------------------------conv2函数---------------------------------------- 1.用法 C=conv2(A, ...

  9. 【matlab函数】conv2、filter2、imfilter的区别

    conv2函数 1.用法 C=conv2(A,B,shape); %卷积滤波 A:输入图像,B:卷积核 假设输入图像A大小为ma x na,卷积核B大小为mb x nb,则 当shape=full时, ...

最新文章

  1. @RequestParam加与不加的区别
  2. php oracle创建临时表,Oracle常用命令笔记
  3. 【数据挖掘】关联规则挖掘 Apriori 算法 ( 频繁项集 | 非频繁项集 | 强关联规则 | 弱关联规则 | 发现关联规则 )
  4. php用什么做缓存文件格式,怎么用php语言来做文件缓存
  5. php 欺骗提交,欺骗PHP整数
  6. 精确计算代码执行时间
  7. 社工大师_社工,与弱势者同行 | TED演讲
  8. java重div获取下拉框值_获取下拉框的value和值
  9. 17.3.10--关于C元的变量类型所占字节问题和类型转化
  10. iPhone 开源游戏引擎
  11. [转]哈希算法(Hash Algorithm)初探
  12. 水系图一般在哪里找得到_水系电池再发Nature,事实力证或将迎来发展的春天!...
  13. Appkey is not configured or configured incorrectly
  14. 浅谈软件需求分析中的参与者
  15. addClass()方法
  16. 10款安卓手机必备APP,能让你的手机更好用!
  17. 插屏广告怎么玩?这些优化要点请get~
  18. 【历史上的今天】5 月 16 日:MacBook 上市;计算机图形学之父出生;笔记本电脑首次搭载 HD DVD
  19. CSS实现鼠标悬停缩放
  20. python 会计应用软件_下列关于会计核算软件记账功能的说法中,正确的有(  )。...

热门文章

  1. 联动 地区城市的 转载
  2. 运算符(关系运算和逻辑运算的介绍)(其一)
  3. 重点用能单位能耗在线监测分析系统
  4. java动漫专题网站系统springboot+vue
  5. 众志成城!春暖花开!带你认识Python
  6. Linux 软连接权限问题
  7. 教你如何访问jsp页面
  8. win10设置Mongodb启动为Windows服务自启动
  9. 【软件工程】软件设计概述
  10. java 开发webservice