Applies the rolling guidance filter to an image
dst = cv.rollingGuidanceFilter(src)
dst = cv.rollingGuidanceFilter(src, 'OptionName',optionValue, ...)
Input
- src Source 8-bit or floating-point, 1-channel or 3-channel image.
Output
- dst Destination image of the same size and type as
src
.
Options
- Diameter Diameter of each pixel neighborhood that is used during
filtering. If it is non-positive, it is computed from
SigmaSpace
.
default -1
- 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. default 25.0
- 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 Diameter>0
,
it specifies the neighborhood size regardless of SigmaSpace
.
Otherwise, Diameter
is proportional to SigmaSpace
. default 3.0
- NumIter Number of iterations of joint edge-preserving filtering
applied on the source image. default 4
- BorderType Border mode used to extrapolate pixels outside of the
image. See cv.copyMakeBorder. default 'Default'
Note that cv.rollingGuidanceFilter uses cv.jointBilateralFilter as the
edge-preserving filter.