# Frame to frame homography

**URL:** <https://forum.opencv.org/t/frame-to-frame-homography/12984>\
**Category:** Uncategorized\
**Created:** [April 28, 2023, 3:01am UTC](https://forum.opencv.org/t/frame-to-frame-homography/12984 "2023-04-28T03:01:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Y.Jonmo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/y.jonmo/32/7784_2.png) [@Y.Jonmo](https://forum.opencv.org/u/Y.Jonmo)\
**Post date:** [April 28, 2023, 3:01am UTC](https://forum.opencv.org/t/frame-to-frame-homography/12984/1 "2023-04-28T03:01:32Z")

</div>

There are several deep models which estimate the frame-to-frame homography, for example SuperPoint, or SuperGlue.  
In the case of finding homography, one assumption is that the camera is a pinhole.

I am using a stationary lens camera (no translation, only ‘rotation’ and ‘zoom’ are the variables). Due to zooming the intrinsics could change. In this case, what is the correct way of finding the homography matrix?

Regards,  
Jacob

---

<div class="post-metadata">

**Author:** ![Steve\_in\_Denver](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Steve\_in\_Denver](https://forum.opencv.org/u/Steve_in_Denver)\
**Post date:** [May 2, 2023, 6:49pm UTC](https://forum.opencv.org/t/frame-to-frame-homography/12984/2 "2023-05-02T18:49:42Z")

</div>

Since you are using a homography, is it safe to assume you don’t have any non-linear lens distortion (or are accounting for it somehow)? If that’s the case, then the focal length change can be modeled by the homography, so no issue there. If you do have lens distortion, the focal length change will affect the distortion model, so you would have to account for that before trying to use a homography to map between two images.

---

<div class="post-metadata">

**Author:** ![Y.Jonmo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/y.jonmo/32/7784_2.png) [@Y.Jonmo](https://forum.opencv.org/u/Y.Jonmo)\
**Post date:** [May 3, 2023, 12:12am UTC](https://forum.opencv.org/t/frame-to-frame-homography/12984/3 "2023-05-03T00:12:44Z")

</div>

Thanks a lot Steve!  
I need to check if the distortion is non-linear.
