The main direction of this implementation is motion estimation and arrow marking .To get the motion direction , the system implements two ways . The first one , diamond search , is separating current frame and last frame into motion blocks , and doing the block-matching to estate the motion . The second one is affine model . Finding the main moving direction of whole frames .
DS (Diamond Search) Algorithm
(1)Separate current frame and last frame into motion blocks, and use two diamond-like search patterns to do the block-matching for estimating the motion.
(2) Search Pattern:Large Diamond Search Pattern(LDSP) & Small Diamond Search Pattern(SDSP)
Affine Motion Model
affine motion model is another way to estimate global motion in the
system . It determines the parameters of translation .