1. An image processor that, based on data of an analysis region in an image, performs analysis processing of the image, the image processor comprising: a region detecting portion that, based on data of each pixel of the image, detects a position of a specular reflection region in the image; and a region setting portion that, based on the detected position of the specular reflection region, sets the analysis region so that the analysis region and the specular reflection region do not overlap; wherein the region setting portion sets the analysis region by moving a predetermined region that is set in advance within the image.