Rolling Guidance Filter

58 篇文章 7 订阅

 

 

Rolling Guidance Filter 非常有用处,为中国香港大学Qi Zhang,Xiaoyong Shen等所发明,其作用基本上可以认为是bilateral 的升级版。

Rolling Guidance Filter 在去移除和平滑图像中的复杂的小区域时,还能保证大区域物体边界的准确性。

因此,可以使用Rolling Guidance Filter 去除复杂背景,获取物体轮廓,方便图像分割。同时用其逆运算,可以增强图像细节。

 

获取图像轮廓

 

Input

 Canny of InputRolling Guidance ResultCanny of Rolling Guidance Result

 

图像增强

 

Input

 Detail Enhanced by Bilateral FilterDetail Enhanced by Rolling Guidance (Ours)

 

OpenCV 3.1.0 已经将此算法集成进去,接口定义方法见下:

 

void cv::ximgproc::rollingGuidanceFilter

 (InputArray src,
  OutputArray dst,
  int d = -1,
  double sigmaColor = 25,
  double sigmaSpace = 3,
  int numOfIter = 4,
  int borderType = BORDER_DEFAULT 
 )  

Applies the rolling guidance filter to an image.

Parameters

srcSource 8-bit or floating-point, 1-channel or 3-channel image.
dstDestination image of the same size and type as src.
dDiameter of each pixel neighborhood that is used during filtering. If it is non-positive, it is computed from sigmaSpace .
sigmaColorFilter 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.
sigmaSpaceFilter 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 .
numOfIterNumber of iterations of joint edge-preserving filtering applied on the source image.
borderType 

Note

rollingGuidanceFilter uses jointBilateralFilter as the edge-preserving filter.

See also

jointBilateralFilter, bilateralFilter, amFilter

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值