Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

perspective transformation with given camera pose

$
0
0
Hi everyone! I'm trying to create a program, that I will use to perform some tests. In this program an 2D image is being displayed in 3D space in the cv:viz window, so user can change camera (viewer) position and orientation. ![image description](/upfiles/1443709792833003.jpg) After that, program stores camera pose and takes the snaphot of the current view (without coordinates axes): ![image description](/upfiles/14437098062513117.jpg) An here is the goal: I have the **snaphot** (perspective view of undetermined plane or part of the plane), **camera pose** (especially its orientation) and **camera parameters**. Using these given values I would like to **perform perspective transformation to compute an ortographic view of this given image** (or its visible part). I can get the camera object and compute its projection matrix: camera.computeProjectionMatrix(projectionMatrix); and then decompose projection matrix: decomposeProjectionMatrix(subProjMatrix,cameraMatrix, rotMatrix, transVect, rotMatX, rotMatY, rotMatZ); And what should I do next? Notice, that I can't use chessboard cornersbecause the image is undetermined (it may be any image) and I can't use the corner points of the image, because user can zoom and translate the camera, so there is posibility, that no image corner point will be visible... Thanks for any help in advance!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>