Perspective Rotation about Y axis
I have a 2D image and I want to create a anaglyph image for this single 2D image. 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.
I came to know that the perspective rotation (about Y axis) and perspective skews will give the right image.
I know that the perspective projection is related to 3D.
Basically I am new to 3D programming.
Can you plz explain how to do perspective rotation abuout Y-axis. And how can I apply this to 开发者_如何学Pythonmy 2D image.I am using C++.
Thank you verymuch
N.A.Reddy.
You can't create an anaglyph from a 2D image. You need either two 2D images that were taken slightly apart from each other or you need a 3D image. You can try and generate 3D information from a 2D image but that's almost impossible and an active area of research.
精彩评论