Renderscript Intrinsics 文档

Renderscript Intrinsics documentation

我使用 Renderscript ScriptIntrinsicBlur,它运行良好并为我的应用程序节省了大量计算时间。然而,我一直在寻找这些非常有用的 Renderscript Intrinsic 函数的用户指南和文档,但除了开发人员网站上的一些高级技术信息外,几乎没有找到任何东西。例如:

how is the blur radius of ScriptIntrinsicBlur defined? I assume it must some cut-off of the gaussian Sigma in relation to the kernel size (e.g. 99%), but I didn't find anything on that. also I would be interested in the histogram function, e.g. in order to apply them for histogram-matching of two Pictures. But I found little on that. how exactly are the types U8_4, U8_3, U8_2, U8 defined? And what type would be most efficient for Gray-Value Pictures?

感谢任何反馈。

这里对Gaussian Sigma不是很了解,不过网上有源码(https://android.googlesource.com/platform/frameworks/rs/+/master/cpu_ref/rsCpuIntrinsicBlur.cpp)。请注意,GPGPU 驱动程序也可以自由地以稍微不同的方式重新实现它。

就 U8 内容而言,这些只是基础元素类型。 U8 表示单个无符号字符。 U8_2 是一个 2 宽的无符号字符向量。 U8_3 和 U8_4 同样是无符号字符的 3 和 4 宽向量。对于许多图像处理任务,U8_4 是基础类型(如 RGBA_8888,它是 4 个 8 位值,分别代表红色、绿色、蓝色、alpha)。