in which, C(??c) is a correlation between the candidate motion vectors and the motion vectors of the adjacent blocks B1 to B8, D(??c) is a vector distance, ??c is a candidate motion vector, ??k is a motion vector of the adjacent blocks B1 to B8, and M is the number of adjacent blocks B1 to B8.