blockmatching
Blockmatching is an image and video processing technique in which a reference image or frame is divided into smaller rectangular areas called blocks, and for each block a search is performed within a defined window of a target image or subsequent frame to find the most similar block. The similarity is usually measured by a cost function such as sum of absolute differences, sum of squared differences, or normalized cross‑correlation. The result of the search is a motion vector that denotes the displacement of the block, which can then be used for motion compensation, compression, or error concealment.
The basic block‑matching algorithm begins by selecting a block of known size from the reference. A brute‑force
Blockmatching is widely used in video codecs such as H.264 and HEVC for motion estimation and compensation.