Motion compensation apparatus based on block, and method of the same

PURPOSE: An apparatus and a method for compensating block-based motion are provided to perform accurate motion compensation through discriminately applying OBMC(Overlap Block Motion Compensation) only to blocks having block artifacts. CONSTITUTION: The first motion compensation interpolator(120) reads the first and the second pixels corresponding to a motion vector of an estimated current block respectively and calculates the first interpolation pixel. The second motion compensation interpolator(130) reads the third and the fourth pixels corresponding to a motion vector estimated with respect to each of at least one peripheral block adjacent to the current block to be interpolated respectively, and to calculate the second interpolation pixel. A candidate interpolation pixel calculator(140) calculates a candidate interpolation pixel by allocating a predetermined weight to the first and the second interpolation pixels according to relative locations where the first and the second interpolation pixels are interpolated. A motion analyzer(150) analyzes the estimated motion vectors of the current block and the peripheral blocks and determines whether the current block and the peripheral blocks are continuous. A final interpolation pixel selector(160) selects one of the first interpolation pixel and the candidate interpolation pixel as a final interpolation pixel according to the result determined at the motion analyzer and outputs the selected final interpolation pixel.