简体   繁体   English

Android - 从 RAW 格式图像中获取像素

[英]Android - Get a pixel from a RAW format Image

It is possible to convert a pure RAW_SENSOR Image to a bitmap with 16bits of precision and get their pixels out of it?是否可以将纯 RAW_SENSOR 图像转换为具有 16 位精度的 bitmap 并从中获取像素?

A RAW "image" is not really an image. RAW“图像”并不是真正的图像。 It represents the raw (hence the name) sensor data from the camera.它代表来自相机的原始(因此得名)传感器数据。 To get a bitmap you would need to "develop" the photo.要获得 bitmap,您需要“显影”照片。

However a good, general-purpose algorithm for developing a RAW photo is very hard to develop.但是,很难开发出用于开发 RAW 照片的良好通用算法。 If I knew a bit more about your situation I could suggest a possible solution but I think your best bet is either using the developed image directly or find some way to convert it using a preexisting algorithm.如果我对您的情况有更多了解,我可以提出一个可能的解决方案,但我认为您最好的选择是直接使用开发的图像,或者找到某种方法使用预先存在的算法对其进行转换。

I strongly recommend the former because the phone's built-in algorithm will most likely be better than whatever library you might find.我强烈推荐前者,因为手机的内置算法很可能比你可能找到的任何库都要好。

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

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