将像素阵列转换为swift ...没有libtiff/libjpeg?

发布于 2025-01-28 19:52:19 字数 289 浏览 4 评论 0原文

我有原始图像数据,一个像素数组(实际上是一个单个数据字符串),我想转换为最基本和最小的DNG格式/文件。我看到了利用Libtiff和Libjpeg的不同方法。

使用核心图形,核心图像或另一个Swift API,是否有更简单,更直接的方法可以在Swift中进行此操作?

图像数据仍处于原始拜耳矩阵格式(CFA模式为rggb)中,没有任何标签。

我下载了最新的Adobe DNG格式规范的100页以上,但是在其中找不到DNG文件的实际字节订单或结构...我对此文档感到非常丢失。

任何帮助和提示都将受到高度赞赏。

I have raw image data, a pixel array (actually a single string of data) that I want to convert to the most basic and minimal DNG format/file. I saw different approaches utilizing libtiff and libjpeg.

Is there a simpler and more straight forward way to do this in SWIFT using Core Graphics, Core Image or yet another SWIFT API?

The image data are still in the original Bayer matrix format (CFA pattern is RGGB) without any tags.

I downloaded the over 100 pages of the latest Adobe DNG format specification, but I cannot find the actual byte order or structure of the DNG file in there... I am pretty lost with this document.

Any help and hints are highly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文