Background Blur#

The Background Blur filter uses the segmentation mask and an input image to produce a blur effect in the background region of the input image.

The Strength value, which allows you to change the strength of the applied blur filter by selecting a value in the [0-1] range, and the default is 0.5. The Strength value can be set by using the NVVFX_SetF32 function. The value uses the same input as the AI green screen filter, the segmentation mask output of the AI green screen filter or other sources, and an output buffer.

The Background Blur filter processes an input image by completing the following steps:

  1. The filter uses the segmentation mask to find the region of interest to apply a blur filter.

  2. The input is composited with the blurred image to produce the background blur effect.

Here are the requirements to use the Background Blur filter:

  • The input must be a 24-bit BGR image, and therefore, 8-bit per pixel component. The data type is UINT8, and the range of values is [0, 255].

  • The segmentation mask must be an 8-bit segmentation mask. The data type is UINT8, and the range of values is [0, 255].

  • Output is a 24-bit BGR image, and the data type is UINT8.