Block Matching
Select a block in the current frame, set the search window and search strategy, and see how different block-matching methods locate it in the reference frame.
Current frame: shifted image with the blue block you track.
Reference frame: original image with the best green match inside the dashed search window.
Shifters: move the current frame (Shift X/Y) and the block origin (Block X/Y) to test motion.
Current frame
Block to track (blue) in the shifted frame.
Reference frame
Best match (green) found by the selected search method inside the dashed window.
Match details
Offsets are reported as reference − current coordinates (motion vector).
Search method
—
Estimated displacement (dx, dy)
—
Ground truth (−ShiftX, −ShiftY)
—
Error (dx−gt, dy−gt, ‖e‖)
—
Search window
—
Candidates evaluated
—
Best SAD score
—
Block matching compares the pixel sum of absolute differences (SAD) for each candidate inside the search region. Faster search strategies evaluate fewer candidates at the cost of potentially missing the global minimum.