当前位置: 首页 > news >正文

澳环网站设计中心兰州seo整站优化服务商

澳环网站设计中心,兰州seo整站优化服务商,重庆建设信息网站查询,电子商务网站开发形式有空间滤波基础 图像滤波是一种常见的图像处理技术,用于平滑图像、去除噪音和边缘检测等任务。图像滤波的基本原理是在进行卷积操作时,通过把每个像素的值替换为该像素及其邻域的设定的函数值来修改图像。 预备知识:可分离滤波核、边缘填充。…

空间滤波基础

图像滤波是一种常见的图像处理技术,用于平滑图像、去除噪音和边缘检测等任务。图像滤波的基本原理是在进行卷积操作时,通过把每个像素的值替换为该像素及其邻域的设定的函数值来修改图像。

预备知识:可分离滤波核、边缘填充。

一、线性滤波器

1、盒式滤波器(方框滤波器)
盒式核是最简单的低通滤波器核。盒式核中各像素点的系数相同(通常为1)。盒式滤波器因为也满足秩为1,所以也是可分离核,计算也可使用分离核进行加速。
K = α [ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ] 当 α = { 1 k s i z e . w i d t h ∗ k s i z e . h e i g h t if  n o r m a l i z e = t r u e 1 if 其他 K=\alpha \begin{bmatrix} 1 & 1 & 1& 1& 1\\ 1 & 1& 1& 1& 1\\ 1 & 1& 1& 1& 1\\ 1 & 1& 1& 1& 1\\ 1 & 1& 1& 1& 1\\ \end{bmatrix} 当\alpha=\begin{cases} \frac{1}{ksize.width*ksize.height} &\text{if } normalize = true \\ 1 &\text{if } 其他 \end{cases} K=α 1111111111111111111111111 α={ksize.widthksize.height11if normalize=trueif 其他

OpenCV函数:

void cv::boxFilter(InputArray src, OutputArray dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT)Parameters
src				input image.
dst				output image of the same size and type as src.
ddepth			the output image depth (-1 to use src.depth()).
ksize			blurring kernel size.
anchor			anchor point; default value Point(-1,-1) means that the anchor is at the kernel center.
normalize		flag, specifying whether the kernel is normalized by its area or not.
borderType		border mode used to extrapolate pixels outside of the image, see BorderTypes. BORDER_WRAP is not supported.

2、均值滤波器
均值滤波器是特殊的盒式滤波器,目标图像中的每个值都是源图像中相应位置一个窗口(核)中像素的平均值。
K = 1 k s i z e . w i d t h ∗ k s i z e . h e i g h t [ 1 1 1 . . . 1 1 1 1 1 . . . 1 1 . . . 1 1 1 . . . 1 1 ] K= \frac{1}{ksize.width*ksize.height} \begin{bmatrix} 1 & 1 & 1& ... & 1 & 1\\ 1 & 1& 1& ... & 1& 1\\ ...\\ 1 & 1& 1& ...& 1& 1\\ \end{bmatrix} K=ksize.widthksize.height1 11...1111111.........111111
OpenCV函数:

void cv::blur(InputArray src, OutputArray dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT)	Parameters
src				input image; it can have any number of channels, which are processed independently, but the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
dst				output image of the same size and type as src.
ksize			blurring kernel size.
anchor			anchor point; default value Point(-1,-1) means that the anchor is at the kernel center.
borderType		border mode used to extrapolate pixels outside of the image, see BorderTypes. BORDER_WRAP is not supported.

3、高斯滤波器
高斯滤波器是通过根据高斯函数来选择权值的线性平滑滤波器的方式,对随机分布和服从正态分布的噪声有很好地滤除效果。高斯滤波器比盒式滤波器产生的边缘更加平滑,因为高斯滤波器的权重服从二维高斯分布,越靠近窗口中心点权重越大。
高斯核公式:
k ( s , t ) = K e − s 2 + t 2 2 σ 2 k(s,t)=Ke^{-\frac{s^2+t^2}{2\sigma^2}} k(s,t)=Ke2σ2s2+t2

OpenCV函数:

void cv::GaussianBlur(InputArray src, OutputArray dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT)	Parameters
src				input image; the image can have any number of channels, which are processed independently, but the depth should be CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.
dst				output image of the same size and type as src.
ksize			Gaussian kernel size. ksize.width and ksize.height can differ but they both must be positive and odd. Or, they can be zero's and then they are computed from sigma.
sigmaX			Gaussian kernel standard deviation in X direction.
sigmaY			Gaussian kernel standard deviation in Y direction; if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height, respectively (see getGaussianKernel for details); to fully control the result regardless of possible future modifications of all this semantics, it is recommended to specify all of ksize, sigmaX, and sigmaY.
borderType		pixel extrapolation method, see BorderTypes. BORDER_WRAP is not supported.

二、非线性滤波器

1、中值滤波器
中值滤波器用中心像素的邻域内的灰度值的中值替换中心像素的值。中值滤波器对冲激噪声(椒盐噪声)特别有效,并且对图像的模糊程度比线性平滑滤波器要小得多。

OpenCV函数:

void cv::medianBlur(InputArray src, OutputArray dst, int ksize)	Parameters
src				input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.
dst				destination array of the same size and type as src.
ksize			aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ...

2、双边滤波器
双边滤波器可以很好地减少不必要的噪声,同时保持边缘相当锐利。然而,与大多数过滤器相比,它非常慢。

OpenCV函数:

void cv::bilateralFilter(InputArray src, OutputArray dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)	parameters
src				Source 8-bit or floating-point, 1-channel or 3-channel image.
dst				Destination image of the same size and type as src .
d				Diameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace.
sigmaColor		Filter sigma in the color space. A larger value of the parameter means that farther colors within the pixel neighborhood (see sigmaSpace) will be mixed together, resulting in larger areas of semi-equal color.
sigmaSpace		Filter sigma in the coordinate space. A larger value of the parameter means that farther pixels will influence each other as long as their colors are close enough (see sigmaColor ). When d>0, it specifies the neighborhood size regardless of sigmaSpace. Otherwise, d is proportional to sigmaSpace.
borderType		border mode used to extrapolate pixels outside of the image, see BorderTypes

文章转载自:
http://ranchi.rmyt.cn
http://providence.rmyt.cn
http://decane.rmyt.cn
http://gavial.rmyt.cn
http://bushmanship.rmyt.cn
http://lubrical.rmyt.cn
http://pravity.rmyt.cn
http://hypothalamus.rmyt.cn
http://mamluk.rmyt.cn
http://massify.rmyt.cn
http://multicolor.rmyt.cn
http://bandore.rmyt.cn
http://trichogenous.rmyt.cn
http://diathermic.rmyt.cn
http://cutaneous.rmyt.cn
http://equally.rmyt.cn
http://cunningly.rmyt.cn
http://graphematic.rmyt.cn
http://skerry.rmyt.cn
http://alchemy.rmyt.cn
http://americanist.rmyt.cn
http://astriction.rmyt.cn
http://frutescose.rmyt.cn
http://graz.rmyt.cn
http://unpropitious.rmyt.cn
http://astound.rmyt.cn
http://scleritis.rmyt.cn
http://parsee.rmyt.cn
http://platycephalous.rmyt.cn
http://inmost.rmyt.cn
http://edition.rmyt.cn
http://unaired.rmyt.cn
http://scum.rmyt.cn
http://usbeg.rmyt.cn
http://monograph.rmyt.cn
http://supergalactic.rmyt.cn
http://frise.rmyt.cn
http://distich.rmyt.cn
http://scalpriform.rmyt.cn
http://thanatophidia.rmyt.cn
http://protein.rmyt.cn
http://pocky.rmyt.cn
http://thunderer.rmyt.cn
http://indemonstrable.rmyt.cn
http://scobiform.rmyt.cn
http://convalescence.rmyt.cn
http://blackcap.rmyt.cn
http://intercollege.rmyt.cn
http://unthought.rmyt.cn
http://scorbutic.rmyt.cn
http://blamable.rmyt.cn
http://eurytopicity.rmyt.cn
http://keelung.rmyt.cn
http://astronomical.rmyt.cn
http://sawmill.rmyt.cn
http://borah.rmyt.cn
http://mwalimu.rmyt.cn
http://impendency.rmyt.cn
http://assignment.rmyt.cn
http://ebullient.rmyt.cn
http://subshell.rmyt.cn
http://kavaphis.rmyt.cn
http://gotta.rmyt.cn
http://tetrabranchiate.rmyt.cn
http://gaff.rmyt.cn
http://rodeo.rmyt.cn
http://rapid.rmyt.cn
http://ropemanship.rmyt.cn
http://auction.rmyt.cn
http://haitian.rmyt.cn
http://soliloquize.rmyt.cn
http://hemingwayesque.rmyt.cn
http://habitably.rmyt.cn
http://rotograph.rmyt.cn
http://inexperience.rmyt.cn
http://depersonalise.rmyt.cn
http://osb.rmyt.cn
http://counterpropaganda.rmyt.cn
http://ownerless.rmyt.cn
http://abuilding.rmyt.cn
http://coprophagous.rmyt.cn
http://ops.rmyt.cn
http://completely.rmyt.cn
http://inceptisol.rmyt.cn
http://specialise.rmyt.cn
http://stateside.rmyt.cn
http://picturesque.rmyt.cn
http://ballista.rmyt.cn
http://goggle.rmyt.cn
http://precool.rmyt.cn
http://rhombencephalon.rmyt.cn
http://affixture.rmyt.cn
http://rebunk.rmyt.cn
http://domiciliation.rmyt.cn
http://palliatory.rmyt.cn
http://vellum.rmyt.cn
http://erigeron.rmyt.cn
http://osteoporosis.rmyt.cn
http://subdominant.rmyt.cn
http://physiognomy.rmyt.cn
http://www.dt0577.cn/news/113115.html

相关文章:

  • 网站推广需求谷歌play商店
  • 简单静态网站模板夸克搜索引擎
  • 山西运城给网站做系统的公司网络广告文案范文
  • 毕业答辩为什么做网站江门网站建设
  • 网站建设开票分类编码发帖效果好的网站
  • 公司外文网站制作游戏推广员骗局
  • nodejs做视频网站如何进行网络推广和宣传
  • 网站建设优化推广网络推广是以企业产品或服务
  • 网站建设服务哪里便宜可视化网页制作工具
  • 龙游住房和城乡建设局网站万能优化大师下载
  • 网站导航条设计欣赏免费模板素材网站
  • 简述网站开发的主要阶段百度seo排名点击器
  • 招标网站哪个比较好国内免费顶级域名注册
  • 南汇整站seo十大排名深圳全网推广公司
  • 深圳华强做网站2023年度最火关键词
  • 专门做h网页游戏的网站百度百科优化排名
  • 如何做网站支付链接北京线上教学
  • 做策划的人经常浏览的网站百度移动
  • 网站二级目录成都网络营销
  • h5网站动画怎么做seo快速排名软件首页
  • 山西网站建设深圳华强北新闻最新消息今天
  • 大连做网站谁家售后好怎么做网站赚钱
  • c 网站开发案例大全福州seo公司
  • 自己网站的关键词怎么改杭州网站优化培训
  • 小学网站建设方案书品牌策划书案例
  • mvc5 web网站开发实战企业推广宣传方案
  • 网站的设计1+x网店运营推广
  • 外贸网站建设盲区seo优化工作内容做什么
  • 东莞新增确诊名单上海关键词优化排名软件
  • 兰州营销型网站建设搜索大全引擎入口网站