BilateralFilter

The BilateralFilter block reduces unwanted noise by blurring the input image while keeping the edges sharp.

    BilateralFilter

Library

ComputerVision/Images/Filters

Description

To achieve this, the BilateralFilter finds the weighted average of the neighborhood around the pixel (GaussianBlur), then considers blurring only nearby pixels and pixels with similar intensity to the central pixel. In doing so, the BilateralFilter block preserves edges where pixels have large intensity.

Parameters

BilateralFilter_0

NameLabelDescriptionData TypeValid Values

diameter

Diameter

Specifies the diameter of the pixel neighborhood used during filtering.

Scalar

sigmaColor

Sigma Color

Determines the range of pixel values such that pixel value x will be replaced with similar pixel values.

This results in large areas of semi-equal pixel values. The larger the filter value, the stronger the effect on the image, which makes the image appear smoother and more cartoonish.

Scalar

sigmaSpace

Sigma Space

Determines the range of pixel values such that pixel value x will be replaced with similar pixel values.

This results in large areas of semi-equal pixel values. The larger the filter value, the stronger the effect on the image, which makes the image appear smoother and more cartoonish.

Scalar

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

image

explicit

output

1

Port 3

activation

input

externalActivation