zoukankan      html  css  js  c++  java
  • boxFilter in opencv

    void boxFilter(const Mat& src, Mat& dst,int ddepth,Size ksize,Point anchor=Point(-1, -1),bool normalize=true,int borderType=BORDER_DEFAULT)

    Smoothes image using box filter

    Parameters:
    • src – The source image
    • dst – The destination image; willhave the same size and the same type as src
    • ksize – The smoothing kernelsize
    • anchor – The anchor point. Thedefault value Point(-1,-1) means that theanchor is at the kernel center
    • normalize – Indicates, whetherthe kernel is normalized by its area or not
    • borderType – The border mode usedto extrapolate pixels outside of the image

    The function smoothes the image using the kernel:

    	exttt{K} = alpha egin{bmatrix} 1 & 1 & 1 & cdots & 1 & 1 \ 1 & 1 & 1 & cdots & 1 & 1 \ hdotsfor{6} \ 1 & 1 & 1 & cdots & 1 & 1 end{bmatrix}

    where

        

    alpha = fork{frac{1}{	exttt{ksize.width*ksize.height}}}{when 	exttt{normalize=true}}{1}{otherwise}

    Unnormalized box filter is useful for computing various integralcharacteristics over each pixel neighborhood, such as covariationmatrices of image derivatives (used in dense optical flowalgorithms, etc.). If you need to compute pixel sums overvariable-size windows, use integral().

    See also: boxFilter(),bilateralFilter(),GaussianBlur(),medianBlur(),integral().

  • 相关阅读:
    Zookeeper入门(三)之工作流
    Zookeeper入门(二)之基础
    Zookeeper入门(一)之概述
    Docker删除/停止容器
    webbench安装和简单使用
    Notepad++ 7.3.2 Download 64-bit x64 / 32-bit x86
    7 常见问题
    6 完整测试
    5 安装Alloc服务
    4 安装MPush
  • 原文地址:https://www.cnblogs.com/eaglediao/p/7136509.html
Copyright © 2011-2022 走看看