This document discusses a method for detecting moving vehicles in aerial videos using sliding windows in MATLAB. It first performs foreground motion segmentation and trajectory accumulation to build a dynamic scene motion heat map. It then introduces a novel saliency-based background model that enhances moving objects to segment vehicles in high-heat areas. Key steps include compensating for camera motion, detecting independent motion via tracking image corners, and applying a sliding window classifier with optimized parameters like window size and orientation. Evaluation on urban videos shows the approach achieves 88% detection rates with only 2% false positives, outperforming alternative segmentation-based methods in processing time and accuracy. The goal is robust, real-time vehicle detection from aerial videos for applications like traffic monitoring.