1. An image processor that, based on data of an analysis region in an image, performs analysis processing of the image, comprising: a region detecting portion that, based on data of each pixel that constitutes the image, detects the position of a specular reflection region in the image; and a region setting portion that, based on the position of the detected specular reflection region, sets the analysis region.