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

camera rotation and translation based on two images

$
0
0
Hello, I'm just starting my little project in OpenCV and I need your help :) I would like to calculate rotation and translation values of the camera basing on two views of the same planar, square object. I have already found functions such as: getPerspectiveTransform, decomposeEssentialMat, decomposeHomographyMat. Plenty of tools, but I'm not sure which of them to use in my case. I have a square object of known real-world dimensions [meters]. After simple image processing I can extract pixel values of the vertices and the center of the square. Now I would like to calculate the relative rotation and translation of the camera which led to obtain the second of two images:
"Reference view" and "View #n"
(please see below). Any suggestions will be appreciated :) 1. Reference view:
![image description](/upfiles/1438854857209.png)
(center of the object is on the optical axis of camera, the camera-object distance is known) 2. View #1:
![image description](/upfiles/14388548769288926.png) 3. View #2:
![image description](/upfiles/14388548834324958.png) 4. View #3:
![image description](/upfiles/1438854889587757.png)

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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