opencv estimateRigidTransform: How to get global scale?

后端 未结 1 1490
误落风尘
误落风尘 2020-12-16 08:30

I\'m using openCV\'s estimateRigidTransform to stabilize a series of video frames, which works very well.

The function returns a 2x3 transformation matrix M:

相关标签:
1条回答
  • 2020-12-16 09:11

    Ok, after additional search I found a great answer here: https://math.stackexchange.com/questions/13150/extracting-rotation-scale-values-from-2d-transformation-matrix

    Where the "zooming" is represented by s_x and s_y. These two values will mostly be equal (since zoom in video captured by cameras is equal in both directions), so I can take either one.

    0 讨论(0)
提交回复
热议问题