1

I want to project a 3D scene with a moving camera (animated over time). I have a 3x3 transformation matrix, calculated by A2 * (T * (R * A1)) where

A1 is 2D -> 3D matrix projection (I'm currently projecting a single 2D image but will extend to 3D points and remove this matrix)

T is Translation matrix

R is rotation matrix

A2 is 3D -> 2D matrix

I can use this in opencv's warpPerspective and get a decent result. Now, I want to move the camera position in 3D space, but have no idea how. OpenCV has a DecomposeProjectionMatrix which takes a 3x4 projection matrix, but I'm unclear how that relates to any that I have.

cdmh
  • 3,294
  • 2
  • 26
  • 41
  • 1
    This is about opengl, but the basic principles are the same. http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-matrices/ – Rook Jun 09 '17 at 16:47
  • @Rook excellent resource---bookmarked for the future! – alkasm Jun 10 '17 at 03:56
  • see [Understanding 4x4 homogenous transform matrices](https://stackoverflow.com/a/28084380/2521214) – Spektre Jun 15 '17 at 18:42

0 Answers0