Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-126490

Gaussian blur filter is slow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • None
    • 6.8
    • SVG Support
    • 13
    • Foundation Sprint 110, Foundation Sprint 111

      The filter feGaussianBlur is slow due to the native implementation of the calculation of the pixel average especially with increasing zoom factors (O(n⁴)).

      This can be improved (O(n²)) with some known tricks:

      • assume you often calculate the average pixel values for sub-rects - how do you optimize that?
      • solution:
        • create a table of the size of the image, containing the sum of the values of all pixels above and left of it (including that pixel)
        • to find any rect's average value: bottom right corner - top-left - bottom-left + top-left from table (check for off by one)

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            matthias_rauter Matthias Rauter
            matthias_rauter Matthias Rauter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes