The invention includes: a pixel-value vertical-gradient-quantity calculation section (3a) and a pixel-value horizontal-gradient-quantity calculation section (3b) for calculating, for each pixel in image data, a vertical-direction gradient quantity (Sy) and a horizontal-direction gradient quantity (Sx) for a pixel value; a gradient direction/null direction identifying section (5) for identifying, for each pixel, either a gradient direction or null direction from the vertical-direction gradient quantity (Sy) and the horizontal-direction gradient quantity (Sx); a score calculation section (10) for calculating an correspondence degree from a number of pixels for which a gradient direction contained in the matching region matches a gradient direction contained in the model pattern and a pattern correspondence degree which is a degree of similarity of a matching pattern between the gradient direction for each pixel in the matching region and the gradient direction for each pixel in the model pattern to a comparative matching pattern; and a position identifying section (11) for identifying the position in the captured image pointed at with the image capture object from a position of a target pixel for which the correspondence degree is a maximum.
IMAGE PROCESSING DEVICE, CONTROL PROGRAM, COMPUTER-READABLE STORAGE MEDIUM, ELECTRONIC APPARATUS, AND IMAGE PROCESSING DEVICE CONTROL METHOD