<< Chapter < Page | Chapter >> Page > |
A simple method of subtracting one movie frame from another will provide information about which parts of the scene have changed (generally due to motion). This method was performed on each frame of the movie, with consecutive frames being subtracted from each other.
First, the scene is converted to an array of pixel values. These pixel values are the averaged Red, Green, and Blue (RGB) values for each pixel. The pixel values of the previous frame are then subtracted from the current frame’s pixel values, and the absolute value of the values is taken. The result is an array of values that represent how much each pixel has changed between the two frames, with higher values representing more change. The amount of change in a region of pixels can be interpreted as the amount of motion that is taking place in that region. These data can then be used to determine where in the scene the most motion is taking place.
The images below show the results of subtracting two frames from Punch Drunk Love. Note that these are NOT consecutive frames, as the changes between consecutive frames can be very small. The frames presented below were chosen to clearly illustrate the results of frame subtraction. In the “difference” frame, higher values (more change) are represented by white.
Notification Switch
Would you like to follow the 'Adaptive region of interest for video' conversation and receive update notifications?