1. A digital image processing apparatus comprising: a template motion vector obtaining unit configured to obtain template motion vectors respectively corresponding to a plurality of templates of a plurality of different areas in an image frame of a captured image; a position correcting unit configured to correct a position of each of the template motion vectors based on a weighted sum of each of the template motion vectors and at least one neighboring motion vector neighboring each of the template motion vectors; a score calculating unit configured to calculate a score of each of the template motion vectors based on a confidence of each of the template motion vectors and a number of the at least one neighboring motion vector corresponding to each of the template motion vectors; and a global motion estimating unit configured to select a global motion vector representing the image frame from among the template motion vectors, based on the score calculated by the score calculating unit.