如何在 iPhone 应用程序中将 2D 图像转换为 3D [英] How to convert a 2D image to 3D in iphone app

查看:53
本文介绍了如何在 iPhone 应用程序中将 2D 图像转换为 3D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

输入:二维图像

输出: 3D 图像

平台:IOS

我需要在我的 ios 应用程序中将 2D 图像转换为 3D.如何在我的 ios 应用程序中执行此操作?我需要使用哪些框架?OpenGL-es 在这方面有帮助吗?或者IOS中有任何其他软件包可以做到这一点?将 2D 图像转换为 3D 需要遵循哪些步骤?

I need to convert a 2D image into 3D in my ios application.How to do this in my ios application? What are the frameworks I need to use? Will OpenGL-es helps in this? Or anyother packages are there in IOS to do this? What are the steps I need to follow to make a 2D image to 3D?

项目描述:我需要做一个类似于这个Morfo"或

Project Description: I need to do a application similar to this "Morfo" or "Photo Speak". In these applications what I belive is they are converting a 2D image to 3D image and that is the reason I posted here for some start up and help.

推荐答案

强烈推荐你看看下面这本书

I strongly recommend that you take a look at the following book

  • "Multiple View Geometry in Computer Vision" by Richard Hartley and Andrew Zisserman

搜索单视图 3d 重建"一词,结果是 该网站.也许

A search for the term "single view 3d reconstruction" yielded this website. Maybe

从 2D 图像重建 3D 图像极具挑战性,而且通常是不可能的,除非您可以应用一些关于风景的额外知识,例如曼哈顿世界假设,它假设世界上的大部分地区都建立在笛卡尔网格上.

Reconstructing a 3D image from a 2D image is extremely challenging and often not possible, unless you can apply some extra knowledge about the scenery, e.g. the Manhattan World Assumption, which assumes that most of the world is built on a Cartesian grid.

如果您有多个相同场景的视图(最好是在创建不同视图期间没有改变的静态场景),您可以获得更好的结果.

You can get better results if you have more than one view of the same scene (preferably a static scene that did not change during the creation of the different views).

我建议您搜索一下单/多视图 3d 重建",然后再提出一个更有针对性的问题:-)

I suggest that you do some searching about "single/multiple view 3d reconstruction" and come back with a more focused question :-)

其他建议的搜索词是:

  • 单目深度估计
  • 3D 计算机视觉
  • 阴影形状
  • 面部动画(在问题更新后添加)

现在更具体地说明您的问题:

Now more specifically to your questions:

  1. 我不知道您将如何在您的 iOS 应用程序中执行此操作,但我不想让您气馁,我只知道这非常困难.
  2. 我不知道有任何框架可以为您开箱即用地解决这个问题.有许多计算机视觉框架.OpenCV 是一个非常受欢迎的版本,它有一个适用于 iOS 的版本.
  3. OpenGL-ES 用于在嵌入式​​系统"(ES) 上显示 3D 场景
  4. 您可能需要自己实现大部分算法.
  5. 为了将 2D 图像转换为 3D 图像,您需要恢复深度信息,这很重要.
  1. I have no idea how you are going to do this in your iOS application, but I do not want to discourage you, just know that it is very hard.
  2. I do not know of any frameworks that solve this problem out of the box for you. There are many computer vision frameworks out there. OpenCV is a very popular one and it has a version for iOS.
  3. OpenGL-ES is for displaying 3D scenes on an "embedded system" (ES)
  4. You will probably have to implement most of the algorithms yourself.
  5. In order to turn a 2D image into 3D image you need to recover the depth information, which is non-trivial.

这篇关于如何在 iPhone 应用程序中将 2D 图像转换为 3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆