Motion Energy Images or Motion History Images could be defined as the pixel regions of the frame where there is motion.
The frame difference method is the common method of motion detection. This method adopts pixel-based difference to find the moving object, i.e., D(x, y, t) = I(x, y, t) - I(x, y, t-1), where I(x, y, t) is the frame intensity for frame t at pixel (x,y).
Following animations show the results for our test cases.
In order to clean the holes, the image can be passed through the Gaussian low pass filter or certain morphological operations.Optical flow estimation is the method of calculating the motion vector between two frames which are taken at a specific time. The algorithm works by trying to guess in which direction an object has moved so that local changes in intensity can be explained.
Following animations show the results for our test cases.