编码和解码3D MPO文件的Objective-C文件、MPO、Objective

2023-09-08 10:51:59 作者:山河万色不抵你

一个MPO文件是包含两个静止图像,通常使用的3D摄影机的文件。

A MPO file is a file that contains two still images and is commonly used by 3D cameras.

我想两个JPG图像转换成一个MPO文件,也做相反的。

I would like to convert two jpg images into one MPO file and also do the opposite.

我的平台,这是iOS的(目标C)。

My Platform for this is iOS (Objective C).

我已经发现了这一点: Decoding在MPO立体图像文件强积金EXIF块 但它是这样一个文件的MPO或多或少二元结构。 有谁知道一个已经存在的转换器使用的iOS或任何提示来实现这样的转换器?

I already found this: Decoding an mpf exif block in an MPO stereo image file but it is more or less the binary structure of such a MPO file. Does anyone knows an already existing converter to use in iOS or any hints to implement such a converter?

问候西蒙

推荐答案

有没有现成的转换器,这样做的,但使用张贴帕维尔的信息会让你缝合两个图像在一起。可悲的是我没有机会来看看它多后因工作变动。我最近刚回来吧。

There are no existing converters to do so, but using the info posted by pavel will let you stitch two images together. Sadly I didn't have a chance to look into it much after that due to job changes. I have recently just come back to it.

要缝合两个图像一起,你需要采取两个现有的JPEG文件,把他们的数据,并创建MPO头(这实际上说的是非常少的,只是多少图像也有和他们做什么),而数据显示图像,这是我和Pavel表明我们之间的距离。

To stitch two images together you need to take two existing jpegs, take their data, and create the MPO header (which actually says very little, just how many images there are and what they do), and the data that shows the separation between the images, which is what I and pavel showed between us.

其他并发症寻找到做iOS应用程序,不开业务总自动为您可以从SD,你有没有访问到,或登记自己作为一个处理程序业务总的方法,因为你可以在OSX。

Additional complications looking into doing an iOS application, is you can't open MPOs automatically from the SD, as you have no access to that, or way of registering yourself as a handler for MPOs, as you could on OSX.