Here are 2 images, one captured before an action has been made by the surgeon and the other afterwards.
BEFORE:
AFTER:
Difference: (After - Before) + 128. (The addition of 128 is just to have a better image)
As pointed the white arrows, there has been a global motion affecting all the objects. So, I need to estimate it in order to get more valuable information on what's happening in the scene. I already knew that OpenCV 3.0 helps in this context where it's implemented some methods that estimate the dominant motion between 2 images or 2 list of points. But I'm using so far OpenCV 2.4.x because I have dependencies with libraries already installed on my machine so I'm looking for alternative solutions or any other code that does what I want.
Thanks in advance.