如何在iPhone上高效快速地模糊图像?

ope*_*rog 3 iphone image-manipulation objective-c ipad ios

如果我有UIImage或CGContextRef或纯位图数据(直接访问解压缩的ARGB-8像素),我最好选择尽可能快地模糊半径为10像素的图像?

tom*_*oft 5

我已经为iOS实现了stackBlur算法,它接近GaussianBlur但非常快:

https://github.com/tomsoft1/StackBluriOS

例如,检查一下:

在更改滑块时模糊UIImage