A coarse-to-fine search method, comprising: a first search step (S14) of detecting an object from a first image by means of template matching; and a second search step (S15) of setting a region of n pixels × m pixels corresponding to a position at which the object is detected in the first search step (S14) as a search range in a second image having a horizontal resolution and a vertical resolution which are respectively n times and m times that of the first image, n and m being integers equal to or greater than 2, and detecting the object from the second image by means of template matching, characterized in that the coarse-to-fine search method further comprises: a rearrangement step (S13) of rearranging data of the second image in a work memory such that data of n×m pixels which can be collated with the same element of a template in the second search step (S15) is stored in contiguous memory addresses, prior to the second search step (S15), wherein, in the rearrangement step (S13), a copy of data of (m-1) pixels continuing in the vertical direction from each of the pixels in the horizontal direction in the second image is inserted into a next address of each of the pixels in the horizontal direction, wherein n×m collation operations for the n×m pixels stored in the contiguous memory addresses in the work memory are executed through an SIMD instruction in the second search step (S15), and wherein, in the rearrangement step (S13), data of a template used in the second search step (S15) is rearranged in the work memory to store data of each element of the template in n×m contiguous memory addresses. a first search step (S14) of detecting an object from a first image by means of template matching; and a second search step (S15) of setting a region of n pixels × m pixels corresponding to a position at which the object is detected in the first search step (S14) as a search range in a second image having a horizontal resolution and a vertical resolution which are respectively n times and m times that of the first image, n and m being integers equal to or greater than 2, and detecting the object from the second image by means of template matching, characterized in that the coarse-to-fine search method further comprises: a rearrangement step (S13) of rearranging data of the second image in a work memory such that data of n×m pixels which can be collated with the same element of a template in the second search step (S15) is stored in contiguous memory addresses, prior to the second search step (S15), wherein, in the rearrangement step (S13), a copy of data of (m-1) pixels continuing in the vertical direction from each of the pixels in the horizontal direction in the second image is inserted into a next address of each of the pixels in the horizontal direction, wherein n×m collation operations for the n×m pixels stored in the contiguous memory addresses in the work memory are executed through an SIMD instruction in the second search step (S15), and wherein, in the rearrangement step (S13), data of a template used in the second search step (S15) is rearranged in the work memory to store data of each element of the template in n×m contiguous memory addresses. <EOS>