| java.lang.Object | |
| ↳ | com.facebook.imagepipeline.filter.IterativeBoxBlurFilter |
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| IterativeBoxBlurFilter() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static void |
boxBlurBitmapInPlace(Bitmap bitmap, int iterations, int radius)
An in-place iterative box blur algorithm that runs faster than a traditional box blur.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
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)
| bitmap | The Bitmap containing the image. The bitmap dimension need to be smaller
than MAX_BITMAP_SIZE |
|---|---|
| iterations | The number of iterations of the blurring algorithm > 0. |
| radius | The radius of the blur with a supported range 0 < radius <= BLUR_MAX_RADIUS
|