How to find relative camera pose from homography matrix

조회 수: 7 (최근 30일)
Nuno Marques
Nuno Marques 2021년 8월 13일
댓글: Matt J 2021년 8월 13일
Hello,
I have a sequence of images, and i need to know the relative pose of my camera in regard to the first frame. I have found the homography matrix and I have all the camera params. How can i get the relative pose using this information?
Thank you in advance.
  댓글 수: 2
Matt J
Matt J 2021년 8월 13일
편집: Matt J 2021년 8월 13일
Does the image sequence come from a moving camera in different poses? Which two images does the homography relate? Why does it help to have only one homography matrix when you have a whole sequence of images?
Nuno Marques
Nuno Marques 2021년 8월 13일
Hi. Yes, it's from a moving drone. I calculate the Homography matrix in every frame using the current frame and the previous. In other words, im constantly re-calculating the homography matrix.

댓글을 달려면 로그인하십시오.

답변 (2개)

Matt J
Matt J 2021년 8월 13일
편집: Matt J 2021년 8월 13일
Yes, it's from a moving drone.
This means that the camera center is moving. Two images from cameras with different centers cannot be related by a homography, unfortunately. You would have to calculate relative pose by doing single-view geometric calibration of each camera position. If there are 5 or more trackable points in the scene, you may be able to do this.
  댓글 수: 7
Matt J
Matt J 2021년 8월 13일
편집: Matt J 2021년 8월 13일
There are also some published algorithms for estimating extrinsics plus 3D point feature locations, like this one,
However, that paper is applied to a very different applications from yours.
Nuno Marques
Nuno Marques 2021년 8월 13일
I also know the extrinsic parameters. And im confused on how to use lsqnonlin(). I've seen the explanation inhttps://www.mathworks.com/help/optim/ug/lsqnonlin.html but i have no ideia how to use it.

댓글을 달려면 로그인하십시오.


Matt J
Matt J 2021년 8월 13일
You might also have a look at the relativeCameraPose() command. According to its documentation,
you have all the required inputs, however, I do not understand how a homography matrix could be enough to get it to work in light of the fact that the camera center is moving.
  댓글 수: 4
Nuno Marques
Nuno Marques 2021년 8월 13일
Yes. I've applied 2 masks. 1 green and 1 red and then combined them. After that i did a blob analisys. However, the blob analisys makes a search from the top left corner to the bottom right corner, and saves the blob coordinates in an array in the order that finds them. That means, when the attitute of the drone changes, the order of the blobs changes aswell. That makes poor matches beetween some frames. Also there's the problem when a new led enter's the scene.
Matt J
Matt J 2021년 8월 13일
There are orientation-invariant features that can be used to distinguish them. For example, the separation distances between two of the orange LEDs is smaller than the 3rd in the outer square, and similarly in the inner square.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Display Point Clouds에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by