Video and Image Processing Suite User Guide

ID 683416
Date 4/04/2022
Public
Document Table of Contents

8.1. FIR Filter Processing

The FIR II IP calculates the output pixel values in 3 stages.
  1. Creates kernel

    The IP creates an N×M array of input pixels around the input pixel at the same position in the input image as the position of the output pixel in the output image. This center pixel has (N-1)/2 pixels to its left and N/2 pixels to its right in the array, and (M-1)/2 lines above it and M/2 lines below it.

    When the pixels to the left, right, above, or below the center pixel in the kernel extend beyond the edges of the image, the filter uses either replication of the edge pixel or full data mirroring, according to the value of a compile time parameter.

  2. Convolutes

    The IP multiplies each pixel in the N×M input array by the corresponding coefficient in the N×M coefficient array. The IP sums the results to produce the filtered value.

    The FIR Filter II IP retains full precision throughout the calculation of each filtered value, with all rounding and saturation to the required output precision applied as a final stage.

  3. Rounds and saturates.

    The IP rounds and saturates the resulting full precision filtered value according to the output precision specification