[Aim] To identify the inclination of a periodic pattern included in an image based on frequency components corresponding to the periodic pattern, and the frequency components having been detected with respect to plural directions.[Solution Means] A subject component removed signal (Sh) is obtained from an image signal (Sd) representing an image by performing, with respect to a first direction and/or a second direction that is different from the first direction, one-dimensional filtering processing using a subject component removal filter (HPF) that removes a low frequency component including a subject component of the image to roughly remove the subject component. Further, frequency components corresponding to the periodic pattern in the subject component removed signal (Sh) are detected with respect to both of the first direction and the second direction.