如何在Android中快速模糊图像? [英] How do I fast blur a image in Android?
本文介绍了如何在Android中快速模糊图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有更好的方法在Android中快速模糊图像?我试图在Java中实现高斯模糊,但它还不够快,有人可以给我一个样本或者帮我链接指南如何实现这个。
谢谢!
Is there a better way to fast blur a image in Android? I am trying to implement a Gaussian blur in Java, but it's not fast enough,Could anyone please give me a sample or help me a link to a guide on how to implement this.
Thank you!
推荐答案
你可能想看一下 http://android-developers.blogspot.com/2013/08/renderscript-intrinsics.html [ ^ ],您还可以使用c ++实现快速模糊,请参阅https://www.ibm.com/developerworks/opensource/tutorials/os-androidndk/ [ ^ ]但您可以使用renderscript优化模糊 http://docs.xamarin.com/recipes/android/other_ux/drawing/blur_an_image_with_renderscript/ [ ^ ]
You might want to look at http://android-developers.blogspot.com/2013/08/renderscript-intrinsics.html[^], you can also implement a fast blur using c++ see https://www.ibm.com/developerworks/opensource/tutorials/os-androidndk/[^] but you can use optimized blurring with renderscript http://docs.xamarin.com/recipes/android/other_ux/drawing/blur_an_image_with_renderscript/[^]
这篇关于如何在Android中快速模糊图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文