Patent ID: 9747522
Date: 2017-08-29
CPC Classifications: G06K

Claim:
1. An image processing circuit, adapted to calculate a first minimum weighted sum of absolute difference (WSAD) of a first search window in a reference image and a corresponding first target window in a target image, and a second minimum WSAD of a second search window in the reference image and a corresponding second target window in the target image, wherein the first search window and the second search window have a common matching window, and the first target window and the second target window have a common target block, the circuit comprising: a calculation module implemented with hardware including logic gates, configured to generate a plurality of first WSADs according to the first search window, the first target window and a weight coefficient set, and to generate a plurality of second WSADs according to the second search window, the second target window and the weight coefficient set, wherein the calculation module comprises: a plurality of absolute difference calculation units, configured to respectively calculate an absolute difference between a pixel in the common matching window and a corresponding pixel in the common target block; a first multiplication unit, configured to multiply the absolute differences by a first weight coefficient group of the weight coefficient set to generate a plurality of first weighted absolute differences; a first addition unit, configured to add the first weighted absolute differences to obtain one of the first WSADs; a second multiplication unit, configured to multiply the absolute differences by a second weight coefficient group of the weight coefficient set to generate a plurality of second weighted absolute differences; and a second addition unit, configured to add the second weighted absolute differences to obtain one of the second WSADs; and a comparison unit, configured to compare the first WSADs and the second WSADs to generate the first minimum WSAD and the second minimum WSAD, respectively; wherein the calculation module generates one of the first WSADs and one of the second WSADs according to the common matching window, the common target block and the weight coefficient set.