imgproc模块/linear filter

Linear filter

  • Normalized Box Filter/最简单的滤波器
    这里写图片描述

    • blur(src, dst, Size(w,h), Point(-1,-1));
    • src: Source image
    • dst: Destination image
    • Size(w, h): Defines the size of the kernel to be used
    • Point(-1, -1): Indicates where the anchor point(the pixel evaluated)
      is located with respect to the neighborhood.
  • Gaussian Fliter/最实用但并不是最快的的滤波器

    • GaussianBlur(src, dst, Size(i,i), 0,0);
    • 最后两个参数代表是往x方向求导还是y方向,两个都为0,则代表使用kernel size
  • Median Filter 中值滤波器

    • 遍历每个像素并用周围像素的中值代替该像素
    • medianBlur(src, dst, i);
      • i: Size of the kernel(only one because we use a square window, and it must be odd)
  • Bilateral Filter/为了避免滤波器不仅消除了噪声,且将边缘也消融了。

    • bilateralFilter(src, dst, i, i*2, i/2);
      • i: the diameter of each pixel neighborhood
      • i*2: Standard deviation in the color space
      • i/2: Standard deviation in the coordinate space.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值