Optical flow ignore sparse motions
问题 We're actually working on an image analysis project where we need to identify the objects disappeared/appeared in a scene. Here are 2 images, one captured before an action has been made by the surgeon and the other afterwards. BEFORE: AFTER: First, we just calculated the difference between the 2 images and here is the result (Note that I added 128 to the result Mat just to have a nicer image): (AFTER - BEFORE) + 128 The goal is to detect that the cup (red arrow) has disappeared from the scene