与Android相机图像处理 [英] Image processing with Android Camera
问题描述
我想使用的previewFrame后处理的图像显示给用户之前(即应用色调,怀旧等)。据我了解,回到了回调的byte []的数据连接$ C $光盘YUV420sp。有个人被解码此为RGB Java或使用NDK(本地code)?没有人有去codeS这RGB,以及如何将RGB值之后使用的功能的例子吗?
I want to use the onPreviewFrame to post-process the image before displaying it to the user (i.e. apply a color tint, sepia, etc). As I understand, the byte[] data returned to the callback is encoded in YUV420sp. Have people been decoding this to RGB in Java or using NDK (native code)? Does anyone have an example of a function that decodes this to RGB and how the RGB values are used afterwards?
感谢。
推荐答案
我发现翻译的YUV420到一个示例应用程序RGB和显示器(在某种程度上)实时直方图在preVIEW形象。
I found a sample application that translates the YUV420 into RGB and displays (sort of) real time histograms over the preview image.
http://www.stanford.edu/class/ee368/Android/ index.html的
这篇关于与Android相机图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!