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

Gaussian blur filter is slow

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes