how to find sad value in diamond search algorithm. i did use coding in order to find sad values between the macro blocks. but i couldn't get a results. i do want key idea along with coding.
A block matching algorithm is a way of finding matching macro-blocks in a sequence of digital video frames for the purpose of estimating motion. The underlying assumption behind the motion estimate is that the patterns corresponding to the objects and the background in a video sequence frame are moved within the frame to form corresponding objects in the next frame. This can be used to discover the temporal redundancy in the video sequence by increasing the effectiveness of video compression between frames by defining the contents of a macro-block by referring to the contents of a known macro-block that is minimally different.