Package 

Object IterativeBoxBlurFilter

    • Method Summary

      Modifier and Type Method Description
      final static Unit boxBlurBitmapInPlace(Bitmap bitmap, Integer iterations, Integer radius) An in-place iterative box blur algorithm that runs faster than a traditional box blur.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • boxBlurBitmapInPlace

         final static Unit boxBlurBitmapInPlace(Bitmap bitmap, Integer iterations, Integer radius)

        An in-place iterative box blur algorithm that runs faster than a traditional box blur.

        The individual box blurs are split up in vertical and horizontal direction. That allows us to use a moving average implementation for blurring individual rows and columns.

        The runtime is: O(iterations * width * height) and therefore linear in the number of pixels

        The required memory is: 2 * radius * 256 * 4 Bytes + max(width, height) * 4 Bytes + width * height * 4 Bytes (+constant)

        Parameters:
        bitmap - The Bitmap containing the image.
        iterations - The number of iterations of the blurring algorithm 0.
        radius - The radius of the blur with a supported range 0 < radius <=