The motion history image (MHI) is a static image template helps in understanding the motion location and path as it progresses. In MHI, the temporal motion information is collapsed into a single image template where intensity is a function of recency of motion. Thus, the MHI pixel intensity is a function of the motion history at that location, where brighter values correspond to a more recent motion. Using MHI, moving parts of a video sequence can be engraved with a single image, from where one can predict the motion flow as well as the moving parts of the video action.
Some important features of the MHI representation are:
General Algorithm
for each time t Bt := absolute_difference(It, It-1) > thresholdend forfor each time t for each pixel (x,y) if Bt(x,y) = 1 MHIt(x,y) := τ else if MHIt-1 ≠ 0 MHIt(x,y) := MHIt-1(x,y) - 1 else MHIt(x,y) := 0 end ifend forReferences
Motion History Images Wikipedia(Text) CC BY-SA