将专有原始图像格式转换为 Adobe DNG
我有一个从 Aptina 相机拍摄的专有原始相机图像格式。它的原始文件格式为每个颜色通道 16 位,“GRBG”模式,文件扩展名为 *.raw。没有标题什么都没有,只是计划原始拜耳样品。我想将此格式转换为 DNG,因为原始图像解码器(dcraw、gimp...)似乎都不支持它。
1] 是否有任何工具/转换器可以处理 Aptina 相机传感器原始拜耳格式,并允许我将其转换为 DNG 格式?
2]如果没有,我想自己写一个小的C代码来转换它。我在哪里可以找到有关 DNG 格式、其结构等的详细规范。有任何文档解释所有这些 DNG 格式吗?
I have a proprietary raw camera image format taken from a Aptina camera. It's raw file format is 16bit per color channel, 'GRBG' mode with file extension is *.raw. No headers nothing, just plan raw bayer samples. I want to convert this format to DNG, as none of the raw image decoders (dcraw,gimp,...) seem to support it.
1] Is there any tool/converter which can handle Aptina camera sensor raw bayer format, and allow me to convert it to DNG format?
2] If not, I want to write a small C code to convert it myself. Where can I find the detail specification about DNG format, its structure etc. Any document explaining all this DNG format?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
DNG 规范位于 http://www.adobe.com/products/dng /pdfs/dng_spec_1_3_0_0.pdf
尽管有多个版本,但按解释进行管理。查看 Adobe DNG Converter,它可能会有所帮助。
如果您有动力,可以联系 Aptina ;)
有一个处理 RAW 的 FOSS 库,位于 http://www.libraw.org/
但它似乎需要标头才能工作,因为它基于 dcraw。
The specification for DNG lies at http://www.adobe.com/products/dng/pdfs/dng_spec_1_3_0_0.pdf
There are several versions though managed as explained. Check out the Adobe DNG Converter, it might help.
You could contact Aptina if you are motivated ;)
There is an FOSS library that handles RAW at http://www.libraw.org/
but it seems to require headers to be able to work, as it is based on dcraw.
如果您正在寻找 C 代码,此处有一个用于将原始 16 位拜耳图像转换为 DNG 的基本转换器。它仅提供足够的 DNG 信息来加载,但这对于将其输入图像处理应用程序来说应该没问题。
If you are looking for C code, there is a basic converter for raw 16-bit Bayer images into DNG here. It only supplies enough DNG information to get it to load but that should be fine for feeding it into image processing applications.