简体   繁体   English

Renderscript - 处理2张图片

[英]Renderscript - processing 2 images

Quickly going through the documentation I haven't found any obvious way of passing 2 images as inputs - has anyone done this or know if its possible with the current implementation? 快速浏览文档我没有发现任何明显的方式将2个图像作为输入传递 - 有没有人这样做或知道它是否可能与当前的实现?

Cheers, Josh 干杯,乔希

Kernel inputs are currently limited to a single allocation. 内核输入目前仅限于单个分配。 You can pass additional allocations at the global scope and then use rsGetElementAt(thealloc, coords...) to get the data out of them. 您可以在全局范围内传递其他分配,然后使用rsGetElementAt(thealloc,coords ...)从中获取数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM