Figure 5: Sliding window method to obtain stacks of consecutive frames.