Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

How to calculate valSqrSigma and posSqrSigma

vikiR
Beginner
162 Views

I reviewed the "FilterBilateralBorder" example in the following link:

https://www.intel.com/content/www/us/en/docs/ipp/developer-guide-reference/2021-12/filterbilateralborder.html

In this example, the input image dimensions are 128 (width) x 64 (height), and the values for valSqrSigma and posSqrSigma are set to 400.0f and 100.0f, respectively.

How are the values of valSqrSigma and posSqrSigma determined? Are they based on the image size or other factors?

Alternatively, are the values valSqrSigma = 400.0f and posSqrSigma = 100.0f suitable for all types of images?

0 Kudos
1 Reply
Ruqiu_C_Intel
Moderator
111 Views

valSqrSigma: This parameter represents the variance of the function applied to the intensity differences. It controls the degree of smoothing based on the intensity differences between pixels. A higher value results in more smoothing.

posSqrSigma: This parameter represents the variance of the  function applied to the spatial distance between pixels. It controls the degree of smoothing based on the spatial distance. A higher value results in more spatial smoothing.

 

valSqrSigma = 400.0f and posSqrSigma = 100.0f aren't suitable for all types of images, to define the parameters, you need to set them according to the desired level of smoothing for your application

0 Kudos
Reply