필터 지우기
필터 지우기

how to calculate translation and rotation of points of image from 2 consecutive frames

조회 수: 16 (최근 30일)
Hello, I’m trying to calculate the the translation(x,y,z distances) and rotation(roll, pitch, yaw angles) of points of images from 2 consecutive frames. Firstly I use the SURF detector to detect the points of interest then match them between the consecutive frames. Then how am I to calculate the translation and rotation using the location of the matched points? There are many matched points in the image then which one that I have to use in order to find the translation and rotation?

채택된 답변

Roger Stafford
Roger Stafford 2013년 6월 26일
There is a function in the Statistics Toolbox called 'procrustes' which can do that job for you. Read its documentation at:
http://www.mathworks.com/help/stats/procrustes.html
The minimum number of matched points that must be used in two dimensions is two, but it is better if you have many more than that so that the overall error can be minimized. It carries out a least squares matching procedure and gives you the best translation, rotation, and scale factor change.

추가 답변 (1개)

Anand
Anand 2013년 6월 26일
Given that you have already determined SURF features in both frames, you can use the matchFeatures function from the Computer Vision System Toolbox to match points in one frame to the points in the other.
Since there will be some bad matches, you use RANSAC to determine a good matching transformation that removes outliers in point matching. The vision.geometricTransformEstimator function helps you do this. This function returns a transformation matrix giving you the translation and rotation.
You can use the first example titled 'Recover Transformed Image Using SURF Feature Points' to guide you through the implementation.
  댓글 수: 2
yatie SUAIB
yatie SUAIB 2013년 7월 1일
if the value of affine transformation matrix is a = [0.9947 -0.0012; -0.0038 0.9896; 2.5796 -0.1141],how do i know the translation and rotation values?please help.

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

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by