Intersection between two images after a rotation

Hello,

I want to know if there is an opencv method to have the intersection part between two frames after performing a rotation (for example with an angle of 45 degree) or doing a move ahead (with some step k) ? By intersection, I mean the part of the second frame for example that exists in the first frame also (same object …).

For example, working with a robot camera. And the robot perform a rotateLeft action with 45 degree for example. Then we will have a new frame from the robot camera that had some intersection with the robot previous frame (before performing rotation action).

Oh, you rotate the camera, not the image. One method is obviously to just calculate it by means of trigonometry. If you know the camera’s horizobtal field of view in degrees, you can calculate how much the robot’s turn changes the image. It is best to draw this to figure out the formula.

The same principle applies to the case of the robot stepping ahead.

2 Likes