[英]Perspective Rotation about Y axis
I have a 2D image and I want to create a anaglyph image for this single 2D image. 我有一个2D图像,我想为此单个2D图像创建一个浮雕图像。 To do this I need to create Left and Right views.
为此,我需要创建左视图和右视图。 I will considar my 2D image as Left view and I want to create Right View now.
我会将2D图像视为“左视图”,现在我要创建“右视图”。
I came to know that the perspective rotation (about Y axis) and perspective skews will give the right image. 我知道透视旋转(绕Y轴)和透视偏斜会给出正确的图像。
I know that the perspective projection is related to 3D. 我知道透视投影与3D有关。
Basically I am new to 3D programming. 基本上,我是3D编程的新手。
Can you plz explain how to do perspective rotation abuout Y-axis. 您能否解释一下如何在Y轴上进行透视旋转。 And how can I apply this to my 2D image.I am using C++.
以及如何将其应用于我的2D图像。我正在使用C ++。
Thank you verymuch 非常感谢你
NAReddy. NAReddy。
You can't create an anaglyph from a 2D image. 您无法从2D图像创建立体图。 You need either two 2D images that were taken slightly apart from each other or you need a 3D image.
您需要两个彼此稍微分开拍摄的2D图像,或者您需要一个3D图像。 You can try and generate 3D information from a 2D image but that's almost impossible and an active area of research.
您可以尝试从2D图像生成3D信息,但这几乎是不可能的,并且是一个活跃的研究领域。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.