m, and may be a computer such as a desktop computer or a laptop computer.According to the above-described structure, a predetermined pixel group is defined based on specified one point in the vicinity of the subject, a straight part of the subject is identified based on the deviations in pixel value of the pixelgroup, and the inclination of the straight part is detected.