How to efficiently and fast blur an image on the iPhone?

前端 未结 3 951
一个人的身影
一个人的身影 2021-02-04 22:07

If I have a UIImage or CGContextRef or the pure bitmap data (direct access to decompressed ARGB-8 pixels), what\'s my best option to blur an image with radius 10 pixels as fast

3条回答
  •  时光取名叫无心
    2021-02-04 22:49

    I've implemented a stackBlur algorithm for iOS, which is close to GaussianBlur but very fast:

    https://github.com/tomsoft1/StackBluriOS

    Check for instance here:

    Blur an UIImage on change of slider

提交回复
热议问题