Motion estimation is the process of determining the movement of block between adjacent video frames.The system toolbox provides a variety of motion estimation algorithms, such as optical flow,block matching, and template matching.These algorithms create motion vectors,which relate to the whole image, blocks,arbitrary patches, or individual pixels.For block and template matching,the evaluation metrics for finding the best match include MSE, MAD, MaxAD, SAD, and SSD