1. An image coding apparatus, which carries out coding of an inputted image by means of motion vector, comprising: a first detection unit, which is for detecting the motion vector by searching a predetermined search range in the inputted image based on macro block of transformation-inverse transformation-processed image; a second detection unit, which is for detecting a global motion vector between the inputted images based on a global macro block, larger than said macro block; and a determination unit for search range, which can determine search range of the search by the first detection unit by means of the global motion vector detected by said second detection unit.